Skip to content

Fixes update

Fixes update #66

Workflow file for this run

name: Publish Module
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: dawidd6/action-download-artifact@v6
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: build.yml
name: quickpath
search_artifacts: true
branch: main
- name: Extract package
shell: pwsh
run: Expand-Archive -Path quickpath.zip -DestinationPath .
- name: Override module version
run: |
$tag = "${{ github.event.release.tag_name }}"
$versionWithoutV = $tag -replace "^v", ""
(Get-Content 'quickpath/quickpath.psd1') -replace "ModuleVersion\s*=\s*'[^']+'", "ModuleVersion = '$versionWithoutV'" | Set-Content 'quickpath/quickpath.psd1'
shell: pwsh
- name: Publish Module
shell: pwsh
run: Publish-Module -Path quickpath -NuGetApiKey ${{ secrets.NUGET_API_KEY }}