Merge pull request #3 from geo-engine/vote-keep-2022 #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to GitHub Pages | |
on: | |
push: | |
branches: [main] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: init rust-toolchain | |
# somehow rustup show will take care to initialize the version based on the toolchain file | |
run: rustup show | |
- name: Create iCal file | |
run: | | |
cargo run --release > ./output/feiertage.ical | |
rm ./output/.gitignore | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
if: ${{ github.ref == 'refs/heads/main' }} | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./output | |
# TODO: we could set a CNAME | |
# cname: ???.geoengine.io |