using packagr app for version bumping while still keeping branch rest… (#56)

This commit is contained in:
Jason Kulatunga 2023-01-31 21:55:41 -08:00 committed by GitHub
parent 668bccebbd
commit d6a6654681
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions

View File

@ -21,6 +21,12 @@ jobs:
env: env:
STATIC: true STATIC: true
steps: steps:
- name: Get Packagr Token
id: packagr-token
uses: getsentry/action-github-app-token@v2
with:
app_id: ${{ secrets.PACKAGR_APP_ID }}
private_key: ${{ secrets.PACKAGR_APP_PRIVATE_KEY }}
- name: Git - name: Git
run: | run: |
apt-get update && apt-get install -y software-properties-common apt-get update && apt-get install -y software-properties-common
@ -37,7 +43,7 @@ jobs:
version_bump_type: ${{ github.event.inputs.version_bump_type }} version_bump_type: ${{ github.event.inputs.version_bump_type }}
version_metadata_path: ${{ github.event.inputs.version_metadata_path }} version_metadata_path: ${{ github.event.inputs.version_metadata_path }}
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ steps.packagr-token.outputs.token }}
# - name: Test # - name: Test
# run: | # run: |
# make test # make test
@ -45,7 +51,7 @@ jobs:
id: commit id: commit
uses: packagrio/action-releasr-go@master uses: packagrio/action-releasr-go@master
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged GITHUB_TOKEN: ${{ steps.packagr-token.outputs.token }}
with: with:
version_metadata_path: ${{ github.event.inputs.version_metadata_path }} version_metadata_path: ${{ github.event.inputs.version_metadata_path }}
- name: Publish Release & Assets - name: Publish Release & Assets
@ -53,7 +59,7 @@ jobs:
uses: packagrio/action-publishr-go@master uses: packagrio/action-publishr-go@master
env: env:
# This is necessary in order to push a commit to the repo # This is necessary in order to push a commit to the repo
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged GITHUB_TOKEN: ${{ steps.packagr-token.outputs.token }}
with: with:
version_metadata_path: ${{ github.event.inputs.version_metadata_path }} version_metadata_path: ${{ github.event.inputs.version_metadata_path }}

View File

@ -2,4 +2,4 @@ package version
// VERSION is the app-global version string, which will be replaced with a // VERSION is the app-global version string, which will be replaced with a
// new value during packaging // new value during packaging
const VERSION = "0.0.6" const VERSION = "0.0.7"