shlink-web-client/.github/workflows/publish-release.yml

28 lines
682 B
YAML
Raw Normal View History

name: Publish release
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
2023-05-27 10:40:10 +03:00
uses: actions/checkout@v3
- name: Use node.js
2023-05-27 10:40:10 +03:00
uses: actions/setup-node@v3
with:
2023-05-27 10:40:10 +03:00
node-version: 20.2
- name: Generate release assets
run: npm ci --force && VERSION=${GITHUB_REF#refs/tags/v} npm run build:dist
- name: Publish release with assets
uses: docker://antonyurchenko/git-release:latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ALLOW_EMPTY_CHANGELOG: "true"
with:
args: |
dist/shlink-web-client_*_dist.zip