bedrocktool/.github/workflows/build.yml

37 lines
930 B
YAML
Raw Normal View History

2022-08-11 20:22:39 +00:00
name: ci-build
on:
2022-08-11 20:34:08 +00:00
push
2022-08-11 20:22:39 +00:00
jobs:
run:
name: Build
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
2022-08-11 20:38:49 +00:00
with:
fetch-depth: 0
2022-08-11 20:22:39 +00:00
- uses: actions/setup-go@v3
with:
go-version: '1.19'
check-latest: true
cache: true
2022-08-11 20:37:15 +00:00
- name: Retrieve version
run: |
echo "::set-output name=TAG_NAME::$(git describe --tags)"
id: version
- name: build
run: make
2022-08-11 20:22:39 +00:00
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
files: |
2022-08-11 20:37:15 +00:00
bedrocktool_${{ steps.version.outputs.TAG_NAME }}.exe
bedrocktool_${{ steps.version.outputs.TAG_NAME }}-linux
bedrocktool_${{ steps.version.outputs.TAG_NAME }}-mac