-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (49 loc) · 2.24 KB
/
release-lgc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: LogCraft CLI Release
permissions:
contents: "write"
on:
push:
tags:
- 'lgc/**'
jobs:
build:
strategy:
matrix:
os: [ubuntu-24.04, macos-15]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: 'moonrepo/setup-toolchain@v0'
with:
auto-install: true
- run: "moon '#plugin:build'"
- run: "moon lgc:build"
- run: "bash scripts/package.sh"
- name: Renaming OS and ARCH to lowercase
id: toLowerCase
run: |
echo osLowercase=$(echo $RUNNER_OS | tr '[:upper:]' '[:lower:]') >> $GITHUB_OUTPUT
echo archLowercase=$(echo $RUNNER_ARCH | tr '[:upper:]' '[:lower:]') >> $GITHUB_OUTPUT
- name: Upload CLI Artifacts
uses: actions/upload-artifact@v4
with:
name: lgc-${{ steps.toLowerCase.outputs.osLowercase }}-${{ steps.toLowerCase.outputs.archLowercase }}-tarballs
path: |
releases/lgc-${{ steps.toLowerCase.outputs.osLowercase }}-${{ steps.toLowerCase.outputs.archLowercase }}.tar.gz
releases/lgc-${{ steps.toLowerCase.outputs.osLowercase }}-${{ steps.toLowerCase.outputs.archLowercase }}.tar.gz.sha256
releases/lgc-minimal-${{ steps.toLowerCase.outputs.osLowercase }}-${{ steps.toLowerCase.outputs.archLowercase }}.tar.gz
releases/lgc-minimal-${{ steps.toLowerCase.outputs.osLowercase }}-${{ steps.toLowerCase.outputs.archLowercase }}.tar.gz.sha256
- name: Create GitHub Release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
makeLatest: true
artifacts: |
releases/lgc-${{ steps.toLowerCase.outputs.osLowercase }}-${{ steps.toLowerCase.outputs.archLowercase }}.tar.gz
releases/lgc-${{ steps.toLowerCase.outputs.osLowercase }}-${{ steps.toLowerCase.outputs.archLowercase }}.tar.gz.sha256
releases/lgc-minimal-${{ steps.toLowerCase.outputs.osLowercase }}-${{ steps.toLowerCase.outputs.archLowercase }}.tar.gz
releases/lgc-minimal-${{ steps.toLowerCase.outputs.osLowercase }}-${{ steps.toLowerCase.outputs.archLowercase }}.tar.gz.sha256
name: ${{ github.ref_name }}