Skip to content

Commit

Permalink
Updated secret handling (#680)
Browse files Browse the repository at this point in the history
* Updated secret handling
  • Loading branch information
ErikMogensen authored Sep 11, 2022
1 parent e9a997a commit b33cc13
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/handle-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,8 @@ jobs:
publish-it:
needs: [check-tag-branch, get-version, call-build-test]
uses: ./.github/workflows/publish.yml
secrets:
CHOKO_TOKEN: ${{ secrets.CHOKOTOKEN }}
with:
release-version: ${{ needs.get-version.outputs.release-version }}
release-version: ${{ needs.get-version.outputs.release-version }}

6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ name: publish

on:
workflow_call:
secrets:
CHOKO_TOKEN:
required: true
inputs:
release-version:
required: true
type: string
workflow_dispatch:

jobs:
publish:
Expand Down Expand Up @@ -80,6 +82,6 @@ jobs:
- name: Publish to Chocolatey
env:
CHOCO_TOKEN: ${{ secrets.CHOKOTOKEN }}
CHOCO_TOKEN: ${{ secrets.CHOKO_TOKEN }}
run: |
choco push $env:NupkgFilename -k="$env:CHOCO_TOKEN"

0 comments on commit b33cc13

Please sign in to comment.