From 271151ca4db8a987ee3bc5be183b2a9cecabb352 Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Fri, 18 Jun 2021 14:07:01 -0700 Subject: [PATCH] adding publishr config to github action. --- .github/workflows/release.yaml | 46 ++++++++++++++++++++-------------- pkg/version/version.go | 2 +- 2 files changed, 28 insertions(+), 20 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 47d3d4b..c623bc3 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -52,24 +52,32 @@ jobs: env: # This is necessary in order to push a commit to the repo GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged - - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ steps.bump_version.outputs.release_version }} - release_name: Release ${{ steps.bump_version.outputs.release_version }} - draft: false - prerelease: false - - name: Upload Release Asset - id: upload-release-asset - uses: actions/upload-release-asset@v1 + - name: Publish Release + id: commit + uses: packagrio/action-publishr-go@master env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # This is necessary in order to push a commit to the repo + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged with: - upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps - asset_path: ${{ env.PROJECT_PATH }}/packagr-bumpr-linux-amd64 - asset_name: packagr-bumpr-linux-amd64 - asset_content_type: application/octet-stream + upload_assets: 'packagr-bumpr-linux-amd64' + +# - name: Create Release +# id: create_release +# uses: actions/create-release@v1 +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# with: +# tag_name: ${{ steps.bump_version.outputs.release_version }} +# release_name: Release ${{ steps.bump_version.outputs.release_version }} +# draft: false +# prerelease: false +# - name: Upload Release Asset +# id: upload-release-asset +# uses: actions/upload-release-asset@v1 +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# with: +# upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps +# asset_path: ${{ env.PROJECT_PATH }}/packagr-bumpr-linux-amd64 +# asset_name: packagr-bumpr-linux-amd64 +# asset_content_type: application/octet-stream diff --git a/pkg/version/version.go b/pkg/version/version.go index cc8c301..b58d188 100644 --- a/pkg/version/version.go +++ b/pkg/version/version.go @@ -2,4 +2,4 @@ package version // VERSION is the app-global version string, which will be replaced with a // new value during packaging -const VERSION = "0.0.9" +const VERSION = "0.0.10"