-
Notifications
You must be signed in to change notification settings - Fork 1
79 lines (69 loc) · 2.05 KB
/
release.yml
File metadata and controls
79 lines (69 loc) · 2.05 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Release
on:
push:
branches:
- main
- rc/*
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
suffix: x86_64-linux
- os: macOS-latest
suffix: x86_64-osx
runs-on: ${{ matrix.os }}
steps:
- if: ${{ runner.os == 'macOS' }}
run: brew install coreutils # need GNU install
- run: gem install --user ronn-ng
- run: |
for bin in "$HOME"/.local/share/gem/ruby/*/bin; do
echo "$bin"
done >>"$GITHUB_PATH"
- uses: actions/checkout@v6
- id: release
uses: cycjimmy/semantic-release-action@v4
with:
dry_run: true
extra_plugins: |
semantic-release-stack-upload
env:
FORCE_COLOR: 1
PREPARE_IN_VERIFY: 1
# These are unused, but needed for verify to succeed
GITHUB_TOKEN: ${{ github.token }}
HACKAGE_KEY: ${{ secrets.HACKAGE_UPLOAD_API_KEY }}
- uses: freckle/stack-action@v5
- run: |
make install.check # creates dist/stackctl.tar.gz
cp -v dist/stackctl.tar.gz stackctl-${{ matrix.suffix }}.tar.gz
- uses: actions/upload-artifact@v7
with:
name: ${{ matrix.os }}-binaries
path: "stackctl-*.tar.gz"
if-no-files-found: error
release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: actions/download-artifact@v8
- id: token
uses: actions/create-github-app-token@v3
with:
app-id: ${{ vars.FRECKLE_AUTOMATION_APP_ID }}
private-key: ${{ secrets.FRECKLE_AUTOMATION_PRIVATE_KEY }}
- id: release
uses: cycjimmy/semantic-release-action@v4
with:
extra_plugins: |
semantic-release-stack-upload
env:
FORCE_COLOR: 1
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
HACKAGE_KEY: ${{ secrets.HACKAGE_UPLOAD_API_KEY }}