diff --git a/.github/workflows/Publish.GitHub.yml b/.github/workflows/Publish.GitHub.yml index b3a144672..fb5996065 100644 --- a/.github/workflows/Publish.GitHub.yml +++ b/.github/workflows/Publish.GitHub.yml @@ -2,27 +2,34 @@ name: Publish [GitHub] on: push: + branches: + - '*' paths: - - scripts/** - - src/GitHub/** - .github/workflows/Publish.GitHub.yml + - src/GitHub/** + - icon/** workflow_dispatch: -defaults: - run: - shell: pwsh - -env: - ModuleName: 'GitHub' - APIKey: ${{ secrets.apikey }} - jobs: - publish: - runs-on: 'ubuntu-latest' + BuildModule: + name: Build Module + runs-on: ubuntu-latest steps: - - name: Checkout repo + - name: Checkout Code uses: actions/checkout@v4 - - name: Publish module - run: | - .\scripts\Publish-Module.ps1 -ModuleName $env:ModuleName -APIKey $env:APIKey -Verbose + - name: Build Module + uses: PSModule/Build-Module@main + with: + Verbose: true + + - name: Test Module + uses: PSModule/Test-Module@main + with: + Verbose: true + + - name: Release Module + uses: PSModule/Release-Module@main + with: + APIKey: ${{ secrets.APIKEY }} + Verbose: true