VueTorrent/.github/workflows/release.yml

30 lines
993 B
YAML
Raw Normal View History

2020-08-29 10:04:35 +03:00
name: Build release
on:
2020-08-29 10:04:35 +03:00
release:
types: [published, edited]
jobs:
2020-08-29 10:04:35 +03:00
build-release:
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
2020-12-08 12:11:50 +03:00
run: echo "VERSION=$(jq -r .version package.json)" >> $GITHUB_ENV
2020-08-29 10:04:35 +03:00
- name: Upload
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
2020-08-29 10:04:35 +03:00
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./release.zip
asset_name: release.zip
asset_content_type: application/zip