-
Notifications
You must be signed in to change notification settings - Fork 3
65 lines (61 loc) · 1.85 KB
/
release.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
63
64
65
name: release
run-name: Oya release triggered by ${{ github.actor }}
on:
push:
tags:
- "v*.*.*"
jobs:
build-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: magnetikonline/action-golang-cache@v4
with:
go-version-file: go.mod
- run: go run oya.go run build-dist
- uses: actions/upload-artifact@v3
with:
name: dist
path: dist
build-release-arm64:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: magnetikonline/action-golang-cache@v4
with:
go-version: ~1.16
- run: go run oya.go run build-dist-arm64
- uses: actions/upload-artifact@v3
with:
name: dist-arm
path: dist
release:
runs-on: ubuntu-latest
needs: [build-release, build-release-arm64]
steps:
- uses: actions/download-artifact@v3
with:
name: dist
- uses: actions/download-artifact@v3
with:
name: dist-arm
- run: sha256sum oya_* | tee oya_${GITHUB_REF_NAME}_SHA256SUMS
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: oya_*
fail_on_unmatched_files: true
# TODO: If there is a time and need (and way/os to testit) we can try to migrate to GHActions
# build-installer:
# docker:
# - image: scottyhardy/docker-wine:latest
# steps:
# - checkout
# - run: apt-get update && apt-get install -y wget curl zip osslsigncode
# - run: wget https://github.com/mozilla/sops/releases/download/3.3.1/sops_3.3.1_amd64.deb
# - run: dpkg -i sops_3.3.1_amd64.deb
# - run: curl https://oya.sh/get | bash
# - run: oya run -r fetchBinary
# - run: oya run -r buildInstaller
# - run: oya run -r signInstaller
# - run: oya run -r releaseInstaller