mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-25 02:04:31 +00:00
40 lines
871 B
YAML
40 lines
871 B
YAML
name: Release Tagged Linuxkit
|
|
|
|
on:
|
|
create:
|
|
|
|
jobs:
|
|
build:
|
|
name: Build all targets
|
|
if: github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/v')
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- name: Set up Go 1.19
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: 1.19.2
|
|
id: go
|
|
|
|
- name: Check out code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set path
|
|
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
|
|
env:
|
|
GOPATH: ${{runner.workspace}}
|
|
|
|
- name: Build
|
|
run: |
|
|
make build-all-targets
|
|
env:
|
|
GOPATH: ${{runner.workspace}}
|
|
|
|
- name: GitHub Release
|
|
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
draft: true
|
|
files: bin/*
|
|
generate_release_notes: true |