From 5b2d40dbc660442a8ed5542da49800d00f48f83d Mon Sep 17 00:00:00 2001 From: Michael Jolley Date: Mon, 5 Feb 2024 16:50:55 -0600 Subject: [PATCH] Working on CI/CD process --- .github/workflows/CI.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 8f4d1dc..217e075 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -28,6 +28,8 @@ jobs: if: github.event_name == 'push' && github.ref == 'refs/heads/main' # needs: test runs-on: ubuntu-latest + env: + PS_GALLERY_API_KEY: ${{ secrets.PS_GALLERY_API_KEY }} steps: - name: Checkout repository uses: actions/checkout@v4 @@ -38,8 +40,6 @@ jobs: ./_build/build.ps1 - name: Deploy to PowerShell Gallery - env: - PS_GALLERY_API_KEY: ${{ secrets.PS_GALLERY_API_KEY }} shell: pwsh run: | - Publish-Module -Path ./dist -NuGetApiKey $env:PS_GALLERY_API_KEY + Publish-Module -Path "$(env:GITHUB_WORKSPACE)/dist" -NuGetApiKey $env:PS_GALLERY_API_KEY