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

28 lines
674 B
YAML
Raw Normal View History

name: Publish release
on:
push:
tags:
- 'v*'
jobs:
build:
2023-08-12 11:26:42 +03:00
runs-on: ubuntu-22.04
steps:
- name: Checkout code
2024-10-26 14:14:16 +03:00
uses: actions/checkout@v4
- name: Use node.js
2024-10-26 14:14:16 +03:00
uses: actions/setup-node@v4
with:
2024-10-26 14:14:16 +03:00
node-version: 22.x
- 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
- 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