Skip to content

Commit

Permalink
Merge pull request #13 from DrDrrae/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
DrDrrae committed Mar 23, 2024
2 parents 53fdbb4 + a69ce4b commit 4c6deac
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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 ./ClickUpAPI -NuGetApiKey $env:NUGET_KEY -Verbose

0 comments on commit 4c6deac

Please sign in to comment.