updated github pages workflow, poetry needs to be installed different… #26
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: Build and Deploy to GitHub Pages | |
on: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: write | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
env: | |
REACT_APP_BUILD: standalone | |
NODE_ENV: development | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: npm i && pipx install poetry | |
- name: Build release | |
run: npm run release | |
- name: Unpack release | |
run: | | |
RELEASE_FILE=$(ls releases/*.zip | head -n 1) | |
unzip -o "$RELEASE_FILE" -d build | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./build |