-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (40 loc) · 1008 Bytes
/
Copy pathrelease.yml
File metadata and controls
48 lines (40 loc) · 1008 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
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Release
on:
push:
tags: [ 'v*' ]
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set Up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Download Dependencies
run: |
go mod download
go install github.com/crazy-max/xgo@latest
docker pull crazymax/xgo:latest
- name: Build Release
run: |
make release
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: compress
path: dist/compress
- name: Publish Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: "startsWith(github.ref, 'refs/tags/')"
with:
files: |
dist/compress/*
generate_release_notes: true