[Bump versions] Use hcloud-go v2 since v1 is not supported. #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |