-
-
Notifications
You must be signed in to change notification settings - Fork 28
62 lines (58 loc) · 1.23 KB
/
xgo.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
59
60
61
62
name: xgo
concurrency:
group: xgo-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- 'master'
tags:
- 'v*'
paths-ignore:
- '**.md'
pull_request:
branches:
- 'master'
paths-ignore:
- '**.md'
env:
DESTDIR: ./bin
jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build artifacts
uses: docker/bake-action@v5
with:
targets: artifact-all
provenance: false
-
name: Release
uses: docker/bake-action@v5
with:
targets: release
provenance: false
-
name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: xgo
path: ${{ env.DESTDIR }}/release/*
if-no-files-found: error
-
name: GitHub Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/v')
with:
draft: true
files: |
${{ env.DESTDIR }}/release/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}