mirror of
https://github.com/BluemediaDev/fancy-gatus.git
synced 2025-07-01 09:22:41 +02:00
Add workflow for release publishing
This commit is contained in:
parent
412b3db81a
commit
0078481828
1 changed files with 32 additions and 0 deletions
32
.github/workflows/release.yml
vendored
Normal file
32
.github/workflows/release.yml
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
name: Publish release
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*.*.*'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: Release pushed tag
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22.x
|
||||
- name: Clean install dependencies and build
|
||||
run: |
|
||||
npm ci
|
||||
npm run build
|
||||
- name: Create output zip
|
||||
run: cd build; zip -r ../fancy-gatus-${{ github.ref_name }}.zip *
|
||||
- name: Publish Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
name: Fancy Gatus ${{ github.ref_name }}
|
||||
body_path: ${{ github.workspace }}/CHANGELOG.md
|
||||
files: fancy-gatus-${{ github.ref_name }}.zip
|
||||
fail_on_unmatched_files: true
|
Loading…
Add table
Add a link
Reference in a new issue