2020-11-01 12:27:33 +03:00
|
|
|
name: Publish release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- 'v*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2020-12-30 22:58:36 +03:00
|
|
|
runs-on: ubuntu-20.04
|
2020-11-01 12:27:33 +03:00
|
|
|
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
|
2020-11-01 12:39:09 +03:00
|
|
|
run: npm ci && npm run build ${GITHUB_REF#refs/tags/v}
|
2020-11-01 12:27:33 +03:00
|
|
|
- name: Publish release with assets
|
|
|
|
uses: docker://antonyurchenko/git-release:latest
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
ALLOW_TAG_PREFIX: "true"
|
2020-11-01 12:34:53 +03:00
|
|
|
ALLOW_EMPTY_CHANGELOG: "true"
|
2020-11-01 12:27:33 +03:00
|
|
|
with:
|
|
|
|
args: |
|
|
|
|
dist/shlink-web-client_*_dist.zip
|