Skip to content

Commit

Permalink
👷 Updates Publish Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
brucificus committed Sep 27, 2023
1 parent d3e28d3 commit 27a1c1d
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 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 @@ -36,7 +36,7 @@ jobs:
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].8
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].8
uses: pwshrc/[email protected].9
with:
run: ./build/publish.ps1 -NUGET_KEY "abc" -WhatIf

Expand All @@ -64,7 +64,7 @@ jobs:
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].8
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].8
uses: pwshrc/[email protected].9
env:
NUGET_KEY: ${{ secrets.NUGET_KEY }}
with:
Expand All @@ -96,12 +96,12 @@ jobs:
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].7
with:
mode: 'download'
github_token: "${{ secrets.GITHUB_TOKEN }}"
Expand Down

0 comments on commit 27a1c1d

Please sign in to comment.