mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2024-11-28 21:18:54 +03:00
added build versioning
This commit is contained in:
parent
65fccb8cf4
commit
f4d18abd81
1 changed files with 9 additions and 5 deletions
14
.github/workflows/dev-deploy.yml
vendored
14
.github/workflows/dev-deploy.yml
vendored
|
@ -8,16 +8,20 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- uses: actions/setup-node@master
|
- name: Install & build
|
||||||
|
uses: actions/setup-node@master
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
- uses: montudor/action-zip@v0.1.0
|
- name: Zip it
|
||||||
|
uses: montudor/action-zip@v0.1.0
|
||||||
with:
|
with:
|
||||||
args: zip -qq -r ./release.zip ./vuetorrent
|
args: zip -qq -r ./release.zip ./vuetorrent
|
||||||
- uses: "marvinpinto/action-automatic-releases@latest"
|
- run: VERSION=$(sed 's/.*"version": "\(.*\)".*/\1/;t;d' package.json)
|
||||||
|
- name: Push release
|
||||||
|
uses: "marvinpinto/action-automatic-releases@latest"
|
||||||
with:
|
with:
|
||||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
automatic_release_tag: "dev-latest"
|
automatic_release_tag: "dev-v$VERSION"
|
||||||
prerelease: true
|
prerelease: true
|
||||||
title: "Development Build"
|
title: "Development Build v$VERSION"
|
||||||
files: release.zip
|
files: release.zip
|
||||||
|
|
Loading…
Reference in a new issue