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 21:06:36 +00:00
|
|
|
|
|
|
|
# version number
|
|
|
|
- uses: actions-ecosystem/action-get-latest-tag@v1
|
|
|
|
id: get-latest-tag
|
|
|
|
|
|
|
|
# build
|
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: build
|
2022-08-11 21:06:36 +00:00
|
|
|
run: make windows linux mac
|
|
|
|
|
|
|
|
# create release
|
2022-08-11 20:22:39 +00:00
|
|
|
- uses: "marvinpinto/action-automatic-releases@latest"
|
|
|
|
with:
|
|
|
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
2022-08-12 03:03:58 +00:00
|
|
|
automatic_release_tag: ${{ steps.get-latest-tag.outputs.tag }}
|
2022-08-11 20:22:39 +00:00
|
|
|
prerelease: true
|
|
|
|
title: "Development Build"
|
|
|
|
files: |
|
2022-08-11 21:15:26 +00:00
|
|
|
bedrocktool_*
|