Adding F2023 HW4 Th Sol #346
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: Webify & Deploy | |
on: | |
push: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
build-and-deploy: | |
name: Build & Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- run: pip install -r requirements.txt | |
shell: bash | |
- run: python main.py | |
shell: bash | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
if: success() | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
enable_jekyll: true | |
allow_empty_commit: true | |
publish_dir: ./webified/ | |
exclude_assets: '.github' |