-
Notifications
You must be signed in to change notification settings - Fork 71
51 lines (44 loc) · 1.27 KB
/
release.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
name: Package and release on Github
on:
push:
branches:
- main
jobs:
build-debs:
strategy:
matrix:
runner: [ubuntu-latest, shopify-ubuntu-arm64]
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.16
- name: Building Ghostferry
run: .github/workflows/build-deb.sh
- name: Upload debs
uses: actions/upload-artifact@v4
with:
name: debs-${{ github.sha }}-${{ matrix.runner }}
path: build/ghostferry*
release:
runs-on: ubuntu-latest
needs: build-debs
steps:
- uses: actions/checkout@v4
- name: Fetch uploaded artifacts
uses: actions/download-artifact@v4
with:
pattern: debs-${{ github.sha }}-*
+ merge-multiple: true
- name: shasum
shell: bash
run: |
sha256sum *.deb > ghostferry-$GITHUB_SHA.sha256sum
echo "sha256sum:"
cat ghostferry-$GITHUB_SHA.sha256sum
- name: Releasing Ghostferry to Github
run: gh release create --target ${GITHUB_REF#refs/heads/} -p release-${GITHUB_SHA::7} ghostferry*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}