Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

πŸ‘· Updates release workflow to trigger on release

Alicia Sykes2374b8a89d71
diff --git a/.github/workflows/build-release-assets.yml b/.github/workflows/build-release-assets.yml
index 343a81c6..241853cf 100644
--- a/.github/workflows/build-release-assets.yml
+++ b/.github/workflows/build-release-assets.yml
@@ -6,11 +6,12 @@ name: πŸ“¦ Build & Upload Release Assets
#
# The tarball contains the compiled frontend (dist/) plus all server-side
# files. Users extract it and run `yarn install --production` + `node server`.
+#
+# Triggered whenever a new release is created, or when manually dispatched
on:
- push:
- tags:
- - '*.*.*'
+ release:
+ types: [created]
workflow_dispatch:
inputs:
tag:
@@ -20,23 +21,27 @@ on:
permissions:
contents: write
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.release.tag_name || github.event.inputs.tag }}
+ cancel-in-progress: true
+
jobs:
build-release-assets:
name: Build app & upload tarball
runs-on: ubuntu-latest
env:
- TAG: ${{ github.event.inputs.tag || github.ref_name }}
+ TAG: ${{ github.event.release.tag_name || github.event.inputs.tag }}
steps:
- name: Checkout code πŸ›ŽοΈ
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
with:
- ref: ${{ github.event.inputs.tag || github.ref }}
+ ref: ${{ env.TAG }}
- name: Setup Node.js βš™οΈ
uses: actions/setup-node@v4
with:
- node-version: '24'
+ node-version: '20'
cache: 'yarn'
- name: Install dependencies πŸ“₯
@@ -81,4 +86,3 @@ jobs:
tag_name: ${{ env.TAG }}
files: ${{ env.TARBALL }}
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
-