Update module 4.1.501 #24
Workflow file for this run
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
name: Publish module to PowerShell Gallery | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
publish-module: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install and cache PowerShell modules | |
id: psmodulecache | |
uses: potatoqualitee/[email protected] | |
with: | |
modules-to-cache: PowerShellGet | |
shell: pwsh | |
# Import GPG key so that we can sign the commit | |
- name: Import GPG key | |
id: import_gpg | |
uses: crazy-max/ghaction-import-gpg@v6 | |
with: | |
gpg_private_key: ${{ secrets.GPGKEY }} | |
passphrase: ${{ secrets.GPGPASSPHRASE }} | |
git_user_signingkey: true | |
git_commit_gpgsign: true | |
git_config_global: true | |
git_tag_gpgsign: true | |
git_push_gpgsign: false | |
git_committer_name: ${{ secrets.COMMIT_NAME }} | |
git_committer_email: ${{ secrets.COMMIT_EMAIL }} | |
# Create release | |
- name: Create release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
prerelease: false | |
# Push the updated module to the PowerShell Gallery | |
- name: Push module to PowerShell Gallery | |
shell: pwsh | |
run: | | |
$params = @{ | |
Path = "${{ github.workspace }}/VcRedist" | |
NuGetApiKey = "${{ secrets.NUGETAPIKEY }}" | |
ErrorAction = "Stop" | |
} | |
Publish-Module @params |