mirror of
https://codeberg.org/PLG-Development/PLG-MuDiCS
synced 2026-07-06 00:47:09 +00:00
ci(release): upload executables
This commit is contained in:
@@ -21,3 +21,47 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: PLG-MuDiCS ${{ github.ref_name }}
|
name: PLG-MuDiCS ${{ github.ref_name }}
|
||||||
body_path: CHANGELOG.md
|
body_path: CHANGELOG.md
|
||||||
|
|
||||||
|
build:
|
||||||
|
needs: release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
block:
|
||||||
|
- control
|
||||||
|
- display
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ${{ matrix.block }}
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Go
|
||||||
|
uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: "^1.24"
|
||||||
|
cache-dependency-path: go.sum
|
||||||
|
|
||||||
|
- name: Setup Deno
|
||||||
|
uses: denoland/setup-deno@v2
|
||||||
|
if: matrix.block == 'control'
|
||||||
|
with:
|
||||||
|
deno-version: v2.x
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: go mod download
|
||||||
|
|
||||||
|
- name: Generate
|
||||||
|
run: go generate ./...
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: go build -o plg-mudics-${{ matrix.block }} .
|
||||||
|
|
||||||
|
- name: Upload Release Assets
|
||||||
|
uses: svenstaro/upload-release-action@v2
|
||||||
|
with:
|
||||||
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
file: plg-mudics-${{ matrix.block }}
|
||||||
|
tag: ${{ github.ref_name }}
|
||||||
|
|||||||
Reference in New Issue
Block a user