Add Gitea workflow for publishing with Go and Node setup
All checks were successful
renovate / renovate (push) Successful in 49s
CI / build (push) Successful in 1m14s

This commit is contained in:
2025-12-27 23:01:26 -06:00
parent 55eaf28514
commit 1d8fadd835

View File

@@ -0,0 +1,56 @@
name: Publish
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Setup Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
with:
go-version: '1.25.4'
cache: true
- name: Setup Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: '22'
- name: Setup pnpm
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4
with:
version: 10
- name: Install Task
uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v2
with:
version: 3.x
repo-token: ${{ secrets.GITEA_TOKEN }}
- name: Generate SBOM
uses: CycloneDX/gh-gomod-generate-sbom@efc74245d6802c8cefd925620515442756c70d8f # v2
with:
version: v1
args: mod -licenses -json -output bom.json
- name: Build Everything
run: task all
env:
NODE_ENV: production
- name: Create Release and Upload Assets
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1
with:
files: |
software-station
bom.json
env:
GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }}