Fixes for go versions 1.11 and 1.12 #11
Workflow file for this run
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
name: Build hjson-cli Releases | |
on: | |
push: | |
tags: | |
- 'v[0-9]+.[0-9]+**' | |
jobs: | |
build_hjson-cli_releases: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Build the hjson-cli binaries | |
run: ./build_release.sh | |
- name: Upload hjson-cli artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: output | |
path: binaries/* | |
if-no-files-found: error | |
release_artifacts: | |
needs: [build_hjson-cli_releases] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download actifacts | |
uses: actions/download-artifact@v2 | |
with: | |
path: artifacts | |
- name: Show the downloaded artifacts | |
run: | | |
pwd | |
ls -laR * | |
- name: Release binaries | |
uses: ncipollo/release-action@v1 | |
with: | |
# ncipollo/release-action needs a tag! Either a usual "GIT TAG" or an dedicated TAG, see below! | |
# set a TAG if you want to build a release, i.e. via "workflow_dispatch" on GitHub _AND_ do not push a regular GIT TAG | |
# and the other way around, if you want to build releases based on pushed GIT TAGs, make sure you un-comment the "tag:" line below! | |
tag: ${{ github.ref_name }} | |
draft: true | |
artifactErrorsFailBuild: true | |
artifacts: "artifacts/output/*" | |
token: ${{ secrets.GITHUB_TOKEN }} | |