From 67b6a88e2136fd054e427d18da02e4f6653aa68a Mon Sep 17 00:00:00 2001 From: Andrea Mastellone Date: Sat, 23 Mar 2024 09:39:36 -0400 Subject: [PATCH 1/2] Update main.yml --- .github/workflows/main.yml | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ca398f2..f26f12b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,17 +1,28 @@ -name: Publish to PowerShell Gallery +# This is a basic workflow to help you get started with Actions +name: CI + +# Controls when the workflow will run on: + # Triggers the workflow on push or pull request events but only for the main branch push: - branches: - - main + branches: [ main ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: +# A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - publish: - runs-on: windows-latest + publish-to-gallery: + runs-on: ubuntu-latest steps: - - name: Publish PowerShell - uses: natescherer/publish-powershell-action@v1.1.1 - with: - token: ${{ secrets.GALLERY_API_KEY }} - target: gallery - path: ClickUpAPI + - uses: actions/checkout@v2 + - name: Build and publish + # API key generated in PSGallery + env: + NUGET_KEY: ${{ secrets.GALLERY_API_KEY }} + BUILDVER: '1.0.0' + shell: pwsh + run: | + ./build_scripts/build.ps1 + Publish-Module -path ./jtAz -NuGetApiKey $env:NUGET_KEY -Verbose From a69ce4b035e82bd51e59fbf4ec1f33fb11a88c6d Mon Sep 17 00:00:00 2001 From: Andrea Mastellone Date: Sat, 23 Mar 2024 09:40:05 -0400 Subject: [PATCH 2/2] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f26f12b..03097c8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,4 +25,4 @@ jobs: shell: pwsh run: | ./build_scripts/build.ps1 - Publish-Module -path ./jtAz -NuGetApiKey $env:NUGET_KEY -Verbose + Publish-Module -path ./ClickUpAPI -NuGetApiKey $env:NUGET_KEY -Verbose