Skip to content

Working on CI/CD process #2

Working on CI/CD process

Working on CI/CD process #2

Workflow file for this run

name: CI/CD
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build module
shell: pwsh
run: |
. "./_build/build.ps1"
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: Deploy to PowerShell Gallery
env:
PS_GALLERY_API_KEY: ${{ secrets.PS_GALLERY_API_KEY }}
shell: pwsh
run: |
Publish-Module -Path "./dist" -NuGetApiKey $(PS_GALLERY_API_KEY)