Skip to content

Commit

Permalink
Working on CI/CD process
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljolley committed Feb 5, 2024
1 parent 750cae1 commit 2deb38c
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,19 @@ 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

- name: Build & publish module
shell: pwsh
run: |
. ./_build/build.ps1 `
ls `
Publish-Module -Path /dist -NuGetApiKey $env:PS_GALLERY_API_KEY
. ./_build/build.ps1
- name: Deploy to PS Gallery
uses: natescherer/publish-powershell-action@v1
with:
token: ${{ secrets.PS_GALLERY_API_KEY }}
target: gallery
path: dist

0 comments on commit 2deb38c

Please sign in to comment.