VueTorrent/.github/workflows/dev-deploy.yml
2020-05-21 08:21:37 +02:00

28 lines
903 B
YAML

name: Build & Release
on:
push:
branches:
- development
jobs:
github-release-development:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install & build
uses: actions/setup-node@master
- run: npm install
- run: npm run build
- name: Zip it
uses: montudor/action-zip@v0.1.0
with:
args: zip -qq -r ./release.zip ./vuetorrent
- name: Get Version
run: echo ::set-env name=VERSION::$(jq -r .version package.json)
- name: Push release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "dev-v$VERSION"
prerelease: true
title: "Development Build v$VERSION"
files: release.zip