Skip to content

Commit

Permalink
👷 Updates Publish Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
brucificus committed Oct 3, 2023
1 parent e99da74 commit 68aa29b
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ jobs:
steps:
- run: echo "Beginning release."
- name: "Transfer 'version-json' artifact from triggering workflow"
uses: pwshrc/[email protected].7
uses: pwshrc/[email protected].9
with:
name: 'version-json'
- name: "Transfer 'PSGallery-package' artifact from triggering workflow"
uses: pwshrc/[email protected].7
uses: pwshrc/[email protected].9
with:
name: 'PSGallery-package'
- name: "Transfer 'release-notes' artifact from triggering workflow"
uses: pwshrc/[email protected].7
uses: pwshrc/[email protected].9
with:
name: 'release-notes'

Expand All @@ -33,10 +33,10 @@ jobs:
needs: [begin-release]
steps:
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Populate GitVersion variables
id: gitversion_vars
uses: pwshrc/[email protected].5
uses: pwshrc/[email protected].6
with:
mode: 'download'
- name: "Get artifact: PSGallery-package"
Expand All @@ -46,12 +46,12 @@ jobs:
path: ./out/
- name: Publish Prerelease to PSGallery (WhatIf)
if: steps.gitversion_vars.outputs.PreReleaseTag != ''
uses: pwshrc/[email protected].7
uses: pwshrc/[email protected].9
with:
run: ./build/publish.ps1 -NUGET_KEY "abc" -Prerelease -WhatIf
- name: Publish Release to PSGallery (WhatIf)
if: steps.gitversion_vars.outputs.PreReleaseTag == ''
uses: pwshrc/[email protected].7
uses: pwshrc/[email protected].9
with:
run: ./build/publish.ps1 -NUGET_KEY "abc" -WhatIf

Expand All @@ -61,10 +61,10 @@ jobs:
needs: [test-publish-psgallery-package]
steps:
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Populate GitVersion variables
id: gitversion_vars
uses: pwshrc/[email protected].5
uses: pwshrc/[email protected].6
with:
mode: 'download'
- name: "Get artifact: PSGallery-package"
Expand All @@ -74,14 +74,14 @@ jobs:
path: ./out/
- name: Publish Prerelease to PSGallery
if: steps.gitversion_vars.outputs.PreReleaseTag != ''
uses: pwshrc/[email protected].7
uses: pwshrc/[email protected].9
env:
NUGET_KEY: ${{ secrets.NUGET_KEY }}
with:
run: ./build/publish.ps1 -NUGET_KEY "$env:NUGET_KEY" -Prerelease
- name: Publish Release to PSGallery
if: steps.gitversion_vars.outputs.PreReleaseTag == ''
uses: pwshrc/[email protected].7
uses: pwshrc/[email protected].9
env:
NUGET_KEY: ${{ secrets.NUGET_KEY }}
with:
Expand All @@ -93,15 +93,15 @@ jobs:
needs: [publish-psgallery-package]
steps:
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Get GitVersion
id: gitversion_vars
uses: pwshrc/[email protected].5
uses: pwshrc/[email protected].6
with:
mode: 'download'
- name: Get release notes
id: get-releasenotes
uses: pwshrc/[email protected].6
uses: pwshrc/[email protected].8
with:
mode: 'download'
github_token: "${{ secrets.GITHUB_TOKEN }}"
Expand Down

0 comments on commit 68aa29b

Please sign in to comment.