2020-11-01 12:27:33 +03:00
|
|
|
name: Publish release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- 'v*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2023-08-12 11:26:42 +03:00
|
|
|
runs-on: ubuntu-22.04
|
2020-11-01 12:27:33 +03:00
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
2023-05-27 10:40:10 +03:00
|
|
|
uses: actions/checkout@v3
|
2021-10-31 01:07:38 +03:00
|
|
|
- name: Use node.js
|
2023-05-27 10:40:10 +03:00
|
|
|
uses: actions/setup-node@v3
|
2020-11-01 12:27:33 +03:00
|
|
|
with:
|
2023-09-23 13:04:58 +03:00
|
|
|
node-version: 20.7
|
2020-11-01 12:27:33 +03:00
|
|
|
- name: Generate release assets
|
2023-08-12 11:26:42 +03:00
|
|
|
run: npm ci && VERSION=${GITHUB_REF#refs/tags/v} npm run build:dist
|
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 }}
|
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
|