New file included #21
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 from Changelog Tag | |
# When pushing a new commit that is tagged with a version (eg: v1.2.5), check CHANGELOG.md for a header that | |
# matches this tag and publish a new GitHub release with it, then publish the module to the PowerShell Gallery. | |
on: | |
push: | |
tags: | |
- 'v*.*.*' | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
release: | |
name: 🚀 Release and Publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: ✅ Checkout | |
uses: actions/checkout@v4 | |
- name: 📦 Create GitHub Release | |
# Creates a new release from a changelog section that matches a commit tag (eg: v1.2.5) | |
uses: docker://antonyurchenko/git-release:latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} | |
#with: | |
# args: | | |
# artifacts\\${{ GitHub.repository }}.zip | |
- name: 🚀 Publish PowerShell Module | |
env: | |
PS_GALLERY_KEY: ${{ secrets.POWERSHELLGALLERY_KEY }} | |
shell: pwsh | |
run: | | |
echo ${env:PATH} | |
$PSVersionTable | |
Publish-Module -Path '.\src\PSPreworkout' -NuGetApiKey ${{ secrets.POWERSHELLGALLERY_KEY }} |