-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
65819b7
commit 43306b6
Showing
1 changed file
with
13 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,7 @@ jobs: | |
with: | ||
name: version.json | ||
path: ./version/version.json | ||
if-no-files-found: error | ||
- name: Unzip PSGallery-package | ||
shell: pwsh | ||
run: Expand-Archive -Path "PSGallery-package.zip" -DestinationPath ./package/ | ||
|
@@ -56,6 +57,7 @@ jobs: | |
with: | ||
name: PSGallery-package | ||
path: ./package/*.nupkg | ||
if-no-files-found: error | ||
- name: Unzip release-notes.md | ||
shell: pwsh | ||
run: Expand-Archive -Path "release-notes.md.zip" -DestinationPath ./release-notes/ | ||
|
@@ -64,6 +66,7 @@ jobs: | |
with: | ||
name: release-notes.md | ||
path: ./release-notes/release-notes.md | ||
if-no-files-found: error | ||
|
||
test-publish-psgallery-package: | ||
name: Test Publish to PSGallery | ||
|
@@ -90,7 +93,7 @@ jobs: | |
Set-PSRepository PSGallery -InstallationPolicy Trusted | ||
./build/restore.ps1 | ||
- name: "Get artifact: PSGallery-package" | ||
uses: actions/download-artifact@v2 | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: PSGallery-package | ||
path: ./out/ | ||
|
@@ -127,21 +130,13 @@ jobs: | |
run: | | ||
Set-PSRepository PSGallery -InstallationPolicy Trusted | ||
./build/restore.ps1 | ||
- name: "Get artifact: version.json" | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: version.json | ||
path: ./out/ | ||
- name: Populate GitVersion variables | ||
id: gitversion_vars | ||
shell: pwsh | ||
run: | | ||
[object] $version = Get-Content -Path ./out/version.json -Encoding UTF8 | ConvertFrom-Json | ||
foreach ($key in $version.PSObject.Properties.Name) { | ||
echo "::set-output name=$key::$($version.$key)" | ||
} | ||
uses: pwshrc/[email protected] | ||
with: | ||
mode: 'download' | ||
- name: "Get artifact: PSGallery-package" | ||
uses: actions/download-artifact@v2 | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: PSGallery-package | ||
path: ./out/ | ||
|
@@ -165,26 +160,18 @@ jobs: | |
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- name: "Get artifact: version.json" | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: version.json | ||
path: ./out/ | ||
- name: Populate GitVersion variables | ||
id: gitversion_vars | ||
shell: pwsh | ||
run: | | ||
[object] $version = Get-Content -Path ./out/version.json -Encoding UTF8 | ConvertFrom-Json | ||
foreach ($key in $version.PSObject.Properties.Name) { | ||
echo "::set-output name=$key::$($version.$key)" | ||
} | ||
uses: pwshrc/[email protected] | ||
with: | ||
mode: 'download' | ||
- name: "Get artifact: release-notes.md" | ||
uses: actions/download-artifact@v2 | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: release-notes.md | ||
path: ./out/ | ||
- name: "Get artifact: PSGallery-package" | ||
uses: actions/download-artifact@v2 | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: PSGallery-package | ||
path: ./out/ | ||
|