gotelem/.github/workflows/build-openmct.yml

46 lines
1.1 KiB
YAML
Raw Normal View History

2024-03-04 05:29:50 +00:00
name: release
on:
push:
tags:
- '*'
jobs:
2024-03-09 14:33:21 +00:00
release-full:
2024-03-04 05:29:50 +00:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22
2024-03-04 05:33:48 +00:00
- name: Set up Node
uses: actions/setup-node@v4
- name: Install OpenMCT
2024-03-09 14:33:21 +00:00
run: npm ci
2024-03-04 05:33:48 +00:00
working-directory: web/
- name: Build OpenMCT bundle
run: npm run build
working-directory: web/
2024-03-09 14:33:21 +00:00
- name: Build
uses: crazy-max/ghaction-xgo@v3
with:
xgo_version: latest
2024-03-09 14:37:07 +00:00
go_version: 1.21
2024-03-09 14:33:21 +00:00
dest: build
prefix: gotelem-full
targets: windows/amd64,linux/amd64,linux/arm64,linux/arm/v7,darwin/arm64,darwin/amd64
tags: openmct
v: true
x: false
race: false
ldflags: -s -w
buildmode: default
trimpath: true
- name: Release binaries
2024-03-04 05:29:50 +00:00
uses: https://gitea.com/actions/release-action@main
with:
files: |-
2024-03-09 14:33:21 +00:00
build/**
2024-03-04 05:29:50 +00:00
api_key: '${{secrets.RELEASE_TOKEN}}'