-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 813 Bytes
/
Copy pathrelease.yml
File metadata and controls
35 lines (30 loc) · 813 Bytes
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
name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build binaries
run: make build VERSION=${{ github.ref_name }}
- name: Create GitHub release
run: |
gh release create ${{ github.ref_name }} \
--title "container-init ${{ github.ref_name }}" \
--generate-notes \
bin/container-init.linux-amd64 \
bin/container-init.linux-arm64 \
bin/systemd1-shim.linux-amd64 \
bin/systemd1-shim.linux-arm64
env:
GH_TOKEN: ${{ github.token }}