fixing head issues (#14) #21
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
# https://github.com/marketplace/actions/github-tag | |
# https://github.com/marketplace/actions/github-action-build | |
# https://github.com/marketplace/actions/gh-release | |
name: Release | |
permissions: | |
contents: write | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Create GitHub Release | |
runs-on: ubuntu-latest | |
outputs: | |
tag: ${{ steps.tag_version.outputs.new_tag }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Bump version and push tag | |
id: tag_version | |
uses: mathieudutour/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create a GitHub release | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: ${{ steps.tag_version.outputs.new_tag }} | |
name: ${{ steps.tag_version.outputs.new_tag }} | |
body: ${{ steps.tag_version.outputs.changelog }} | |
generate: | |
name: Create release-artifacts | |
runs-on: ubuntu-latest | |
needs: [build] | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@master | |
- name: Generate the artifacts | |
uses: skx/github-action-build@master | |
with: | |
builder: .github/build | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: ${{ needs.build.outputs.tag }} | |
files: 'bin/*' |