Version 3.4.0 #1
Workflow file for this run
This file contains hidden or 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: PowerShell - Release | |
| on: | |
| push: | |
| tags: [ '*.*.*' ] | |
| permissions: | |
| contents: write | |
| jobs: | |
| repository: | |
| name: GitHub Repository | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v5 | |
| - name: Install and cache PowerShell modules | |
| uses: potatoqualitee/psmodulecache@v6.2.1 | |
| with: | |
| modules-to-cache: InvokeBuild:5.14.18,InvokeBuildHelper::,PSScriptAnalyzer:1.24.0,Pester:5.7.1 | |
| updatable: true | |
| - name: Publish to GitHub Repository | |
| shell: pwsh | |
| run: | | |
| Invoke-Build -Task 'Repository' | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| gallery: | |
| name: PowerShell Gallery | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v5 | |
| - name: Install and cache PowerShell modules | |
| uses: potatoqualitee/psmodulecache@v6.2.1 | |
| with: | |
| modules-to-cache: InvokeBuild:5.14.18,InvokeBuildHelper::,PSScriptAnalyzer:1.24.0,Pester:5.7.1 | |
| updatable: true | |
| - name: Publish to PowerShell Gallery | |
| shell: pwsh | |
| run: | | |
| Invoke-Build -Task 'Gallery' | |
| env: | |
| PS_GALLERY_KEY: ${{ secrets.PS_GALLERY_KEY }} |