Merge pull request #134 from Tmktahu/tk-fix-item-assignment-bug #136
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
# Created by MichaelCurrin | |
# https://gist.github.com/MichaelCurrin/a698731096f78240f653faf9a9127cba | |
name: Build and Deploy | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Yarn Install | |
run: yarn install | |
- name: Build | |
run: yarn build | |
- name: Copy Index to 404 | |
run: cp dist/index.html dist/404.html | |
- name: Deploy to GH Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
if: github.ref == 'refs/heads/main' | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dist |