summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2020-07-03 16:00:04 +0200
committerPierre Ossman <ossman@cendio.se>2020-07-03 16:00:04 +0200
commitef5db94a893ea3b0642c0f88ecb67011df8b7026 (patch)
tree0676af711acd3ea6c9084f2d57c06628ec4097da
parent244c02c5ea13b8bb9ce336d3398b623f997a9d25 (diff)
downloadnovnc-ef5db94a893ea3b0642c0f88ecb67011df8b7026.tar.gz
Publish pre-releases to beta channels
Extra important for NPM which doesn't allow replacing a release once it is published.
-rw-r--r--.github/workflows/deploy.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 75a566b..b65ade9 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -14,6 +14,11 @@ jobs:
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
+ if: ${{ !github.event.release.prerelease }}
+ - run: npm publish --access public --tag beta
+ env:
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
+ if: ${{ github.event.release.prerelease }}
snap:
runs-on: ubuntu-latest
container: snapcore/snapcraft
@@ -36,3 +41,6 @@ jobs:
env:
SNAPCRAFT_LOGIN: ${{secrets.SNAPCRAFT_LOGIN}}
- run: snapcraft push --release=stable *.snap
+ if: ${{ !github.event.release.prerelease }}
+ - run: snapcraft push --release=beta *.snap
+ if: ${{ github.event.release.prerelease }}