-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (49 loc) · 1.37 KB
/
deploy.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
on:
push:
branches:
- main
paths-ignore:
- '.github/workflows/gh-pages.yml'
- 'website/**'
jobs:
deploy:
name: Deploy GO Binaries
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
- uses: nttld/setup-ndk@v1
id: setup_ndk
with:
ndk-version: r25c
add-to-path: false
local-cache: false
- name: Go Build
run: ./build-all.sh
env:
NDK_ROOT: ${{ steps.setup_ndk.outputs.ndk-path }}
- name: Upload Continuous Binaries
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./release/*
tag: continuous
overwrite: true
file_glob: true
prerelease: true
release_name: "Continuous Builds"
body: "Continuous builds for Hetzner Android Make"
- name: Upload Stable Binaries
if: "contains(github.event.head_commit.message, '[RELEASE STABLE]')"
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./release/*
tag: stable
overwrite: true
file_glob: true
prerelease: true
release_name: "Stable Builds"
body: "Hetzner Android Make Production Builds for the Users"