diff options
author | Pierre Ossman <ossman@cendio.se> | 2020-12-30 14:18:29 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2020-12-30 15:46:03 +0100 |
commit | 4a8efa6bc9769292a4041c51636466a5e6a95dca (patch) | |
tree | c284ffac1bd5f9d07692f1869f1c4db5d282b152 | |
parent | cd9f535eb30d3aec2148cc214a63aa6269f861e6 (diff) | |
download | novnc-4a8efa6bc9769292a4041c51636466a5e6a95dca.tar.gz |
Use snap actions instead of the broken container
The container didn't work properly for our base snap anyway.
-rw-r--r-- | .github/workflows/deploy.yml | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ab82e56..6b0ac96 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -30,25 +30,27 @@ jobs: if: ${{ github.event_name == 'release' && github.event.release.prerelease }} snap: runs-on: ubuntu-latest - container: snapcore/snapcraft steps: - uses: actions/checkout@v2 - run: | VERSION=$(grep '"version"' package.json | cut -d '"' -f 4) echo $VERSION sed -i "s/@VERSION@/$VERSION/g" snap/snapcraft.yaml - - run: snapcraft + - uses: snapcore/action-build@v1 + id: snapcraft - uses: actions/upload-artifact@v2 with: name: snap - path: novnc*.snap - - run: | - mkdir .snapcraft - 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 + path: ${{ steps.snapcraft.outputs.snap }} + - uses: snapcore/action-publish@v1 + with: + store_login: ${{ secrets.SNAPCRAFT_LOGIN }} + snap: ${{ steps.build.outputs.snap }} + release: stable if: ${{ github.event_name == 'release' && !github.event.release.prerelease }} - - run: snapcraft push --release=beta *.snap + - uses: snapcore/action-publish@v1 + with: + store_login: ${{ secrets.SNAPCRAFT_LOGIN }} + snap: ${{ steps.build.outputs.snap }} + release: beta if: ${{ github.event_name == 'release' && github.event.release.prerelease }} |