diff options
author | Pierre Ossman <ossman@cendio.se> | 2020-12-30 13:40:03 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2020-12-30 13:40:03 +0100 |
commit | 76aa3d1256a86924925ecc3cf282a5f5f022a1ee (patch) | |
tree | ca493f2ac73f29f84a08e6b13653de03e5f746f1 | |
parent | 6784bb312f8cea2104b39adde1cce8246114e415 (diff) | |
download | novnc-76aa3d1256a86924925ecc3cf282a5f5f022a1ee.tar.gz |
Run NPM and snap builds on every push
To make sure these things still build. That means we need to make the
actual deploy parts optional.
-rw-r--r-- | .github/workflows/deploy.yml | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 454ff8b..781309b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,6 +1,8 @@ name: Publish on: + push: + pull_request: release: types: [published] @@ -17,11 +19,11 @@ jobs: - run: npm publish --access public env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - if: ${{ !github.event.release.prerelease }} + if: ${{ github.event_name == 'release' && !github.event.release.prerelease }} - run: npm publish --access public --tag beta env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - if: ${{ github.event.release.prerelease }} + if: ${{ github.event_name == 'release' && github.event.release.prerelease }} snap: runs-on: ubuntu-latest container: snapcore/snapcraft @@ -43,7 +45,8 @@ jobs: echo ${SNAPCRAFT_LOGIN} | base64 --decode --ignore-garbage > .snapcraft/snapcraft.cfg env: SNAPCRAFT_LOGIN: ${{secrets.SNAPCRAFT_LOGIN}} + if: ${{ github.event_name == 'release' }} - run: snapcraft push --release=stable *.snap - if: ${{ !github.event.release.prerelease }} + if: ${{ github.event_name == 'release' && !github.event.release.prerelease }} - run: snapcraft push --release=beta *.snap - if: ${{ github.event.release.prerelease }} + if: ${{ github.event_name == 'release' && github.event.release.prerelease }} |