mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2024-11-29 05:28:53 +03:00
28 lines
903 B
YAML
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
|