Add Remove-Packages function (#9) #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the main branch | |
- uses: actions/checkout@main | |
- name: Install Modules | |
shell: pwsh | |
run: | | |
Set-PSRepository PSGallery -InstallationPolicy Trusted | |
Install-Module InvokeBuild | |
- name: Invoke Build | |
env: | |
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} | |
shell: pwsh | |
run: Invoke-Build Build, Publish | |
- name: Upload Build Artifact | |
uses: actions/[email protected] | |
with: | |
name: module-artifact # Naming the powershell module artifact | |
path: ./Output/ # Saving the powershell module artifact to the path ./Output/ | |