added build versioning

This commit is contained in:
Daan Wijns 2020-05-21 08:12:04 +02:00
parent 65fccb8cf4
commit f4d18abd81

View file

@ -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