diff --git a/.github/workflows/build-test-publish.yml b/.github/workflows/build-test-publish.yml index bc95ca13..0ab41f7b 100644 --- a/.github/workflows/build-test-publish.yml +++ b/.github/workflows/build-test-publish.yml @@ -34,11 +34,8 @@ jobs: git add PwshSpectreConsole/PwshSpectreConsole.psd1 git commit -m "[skip ci] Bump version to $newVersion" git push - - name: Deploy Package - shell: pwsh - run: | - $ErrorActionPreference = "Stop" - Publish-Module -Path "./PwshSpectreConsole/" -Exclude "Build.ps1" -NugetApiKey $env:PSGALLERY_API_KEY + Import-Module .\PwshSpectreConsole\PwshSpectreConsole.psd1 -Force + Publish-Module -Name PwshSpectreConsole -Exclude "Build.ps1" -NugetApiKey $env:PSGALLERY_API_KEY publish-prerelease-to-psgallery: name: Publish Prerelease diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 4206fa0a..42bb7a39 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -24,13 +24,13 @@ jobs: & .\PwshSpectreConsole.Docs\UpdateDocs.ps1 -NonInteractive git config --global user.name 'Shaun Lawrie (via GitHub Actions)' git config --global user.email 'shaun.r.lawrie@gmail.com' - git add PwshSpectreConsole.Docs/src/content - git commit -m "[skip ci] Update docs" - git push + git add PwshSpectreConsole.Docs/src/content || true + git commit -m "[skip ci] Update docs" || true + git push || true - name: Deploy uses: cloudflare/wrangler-action@v3 with: apiToken: ${{ secrets.CF_API_TOKEN }} accountId: ${{ secrets.CF_ACCOUNT_ID }} workingDirectory: "./PwshSpectreConsole.Docs/dist" - command: pages deploy . --project-name pwshspectreconsole --commit-dirty=true --branch=main \ No newline at end of file + command: pages deploy . --project-name pwshspectreconsole --commit-dirty=true --branch=main diff --git a/PwshSpectreConsole/PwshSpectreConsole.psd1 b/PwshSpectreConsole/PwshSpectreConsole.psd1 index 3fbe8dff..467049d5 100644 --- a/PwshSpectreConsole/PwshSpectreConsole.psd1 +++ b/PwshSpectreConsole/PwshSpectreConsole.psd1 @@ -12,7 +12,7 @@ RootModule = 'PwshSpectreConsole' # Version number of this module. -ModuleVersion = '1.0.0' +ModuleVersion = '1.2.0' # Supported PSEditions # CompatiblePSEditions = @()