mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2024-11-28 21:18:54 +03:00
28 lines
995 B
YAML
28 lines
995 B
YAML
name: Build & Release
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
jobs:
|
|
github-release-production:
|
|
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: 'prod-v${{ env.VERSION }}'
|
|
prerelease: true
|
|
title: 'Stable Build v${{ env.VERSION }}'
|
|
files: release.zip
|