Skip to content

Commit

Permalink
Only push to GHPages on a release.
Browse files Browse the repository at this point in the history
And update the CNAME to the production site.
  • Loading branch information
jyasskin committed Jun 27, 2020
1 parent 646041f commit 841df49
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Run tests
on: [push, pull_request]
on:
push:
pull_request:
release:
types: [released]

jobs:
buildtest:
Expand Down Expand Up @@ -42,10 +46,10 @@ jobs:
- name: Push to gh-pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ success() &&
github.event_name == 'push' && github.ref == 'refs/heads/main' &&
github.event_name == 'release' &&
matrix.os == 'ubuntu-latest' && matrix.node == '14.x' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out
cname: sidewalk-obstruction-bingo.yasskin.info
cname: sidewalk-obstruction-bingo.oregonwalks.org
#- run: npm run test:ci

0 comments on commit 841df49

Please sign in to comment.