-
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 837 Bytes
/
release.yml
File metadata and controls
37 lines (32 loc) · 837 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
name: release
on:
release:
types: [published]
jobs:
golang:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
-
name: Build
uses: crazy-max/ghaction-xgo@v2
with:
xgo_version: latest
go_version: 1.18
dest: ../dist
working_dir: xdcc
targets: linux/amd64,linux/arm64,darwin/arm64
v: true
x: false
race: false
buildmode: plugin
trimpath: true
- name: Prepare release version
run: echo "RELEASE_VERSION=${GITHUB_REF:10}" >> $GITHUB_ENV
- name: print
run: |
ls -R
- uses: AButler/upload-release-assets@v2.0
with:
files: './dist/github.com/ProgramComputer/*'
repo-token: ${{ secrets.GITHUB_TOKEN }}