Moved tag releasing from travis to github workflow

This commit is contained in:
Alejandro Celaya
2020-11-01 10:27:33 +01:00
parent 39ae3b4762
commit 6f568a16bf
2 changed files with 27 additions and 13 deletions

27
.github/workflows/publish-release.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
name: Publish release
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use node.js 14.15
uses: actions/setup-node@v1
with:
node-version: 14.15
- name: Generate release assets
run: npm run build ${GITHUB_REF#refs/tags/v}
- name: Publish release with assets
uses: docker://antonyurchenko/git-release:latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ALLOW_TAG_PREFIX: "true"
with:
args: |
dist/shlink-web-client_*_dist.zip