Merge branch 'snap' of https://github.com/CendioOssman/noVNC
This commit is contained in:
commit
a012f98b61
|
@ -11,6 +11,11 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- run: |
|
||||||
|
GITREV=$(git rev-parse --short HEAD)
|
||||||
|
echo $GITREV
|
||||||
|
sed -i "s/^\(.*\"version\".*\)\"\([^\"]\+\)\"\(.*\)\$/\1\"\2-g$GITREV\"\3/" package.json
|
||||||
|
if: ${{ github.event_name == 'push' && github.event.ref == 'ref/heads/master' }}
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
# Needs to be explicitly specified for auth to work
|
# Needs to be explicitly specified for auth to work
|
||||||
|
@ -28,10 +33,19 @@ jobs:
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||||
if: ${{ github.event_name == 'release' && github.event.release.prerelease }}
|
if: ${{ github.event_name == 'release' && github.event.release.prerelease }}
|
||||||
|
- run: npm publish --access public --tag dev
|
||||||
|
env:
|
||||||
|
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||||
|
if: ${{ github.event_name == 'push' && github.event.ref == 'ref/heads/master' }}
|
||||||
snap:
|
snap:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- run: |
|
||||||
|
GITREV=$(git rev-parse --short HEAD)
|
||||||
|
echo $GITREV
|
||||||
|
sed -i "s/^\(.*\"version\".*\)\"\([^\"]\+\)\"\(.*\)\$/\1\"\2-g$GITREV\"\3/" package.json
|
||||||
|
if: ${{ github.event_name == 'push' && github.event.ref == 'ref/heads/master' }}
|
||||||
- run: |
|
- run: |
|
||||||
VERSION=$(grep '"version"' package.json | cut -d '"' -f 4)
|
VERSION=$(grep '"version"' package.json | cut -d '"' -f 4)
|
||||||
echo $VERSION
|
echo $VERSION
|
||||||
|
@ -54,3 +68,9 @@ jobs:
|
||||||
snap: ${{ steps.snapcraft.outputs.snap }}
|
snap: ${{ steps.snapcraft.outputs.snap }}
|
||||||
release: beta
|
release: beta
|
||||||
if: ${{ github.event_name == 'release' && github.event.release.prerelease }}
|
if: ${{ github.event_name == 'release' && github.event.release.prerelease }}
|
||||||
|
- uses: snapcore/action-publish@v1
|
||||||
|
with:
|
||||||
|
store_login: ${{ secrets.SNAPCRAFT_LOGIN }}
|
||||||
|
snap: ${{ steps.snapcraft.outputs.snap }}
|
||||||
|
release: edge
|
||||||
|
if: ${{ github.event_name == 'push' && github.event.ref == 'ref/heads/master' }}
|
||||||
|
|
|
@ -23,6 +23,9 @@ parts:
|
||||||
- core/**/*.js
|
- core/**/*.js
|
||||||
- vendor/**/*.js
|
- vendor/**/*.js
|
||||||
- novnc_proxy
|
- novnc_proxy
|
||||||
|
|
||||||
|
novnc-deps:
|
||||||
|
plugin: nil
|
||||||
stage-packages:
|
stage-packages:
|
||||||
- bash
|
- bash
|
||||||
|
|
||||||
|
@ -31,6 +34,9 @@ parts:
|
||||||
plugin: dump
|
plugin: dump
|
||||||
stage:
|
stage:
|
||||||
- svc_wrapper.sh
|
- svc_wrapper.sh
|
||||||
|
|
||||||
|
svc-script-deps:
|
||||||
|
plugin: nil
|
||||||
stage-packages:
|
stage-packages:
|
||||||
- bash
|
- bash
|
||||||
- jq
|
- jq
|
||||||
|
|
Loading…
Reference in New Issue