chore: update .gitignore #114
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: GH Pages Deploy | |
on: | |
push: | |
branches: [main] | |
paths-ignore: | |
- "*.md" | |
pull_request: | |
branches: [main] | |
paths-ignore: | |
- "*.md" | |
jobs: | |
build-deploy: | |
name: Build and deploy app | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@master | |
with: | |
persist-credentials: false | |
- name: Get yarn cache | |
id: yarn-cache | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- uses: actions/cache@v1 | |
with: | |
path: ${{ steps.yarn-cache.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }} # TODO: Use yarn.lock instead, if that file exists in your repo. | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Install dependencies π§ | |
run: yarn install | |
- name: Test π¨ | |
run: yarn test | |
- name: Build ποΈ | |
run: yarn build | |
- name: Deploy to GH Pages π | |
if: ${{ github.event_name != 'pull_request' }} | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: build |