Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
DevClate committed Jul 9, 2024
2 parents 1f79474 + 77144c1 commit 56762e4
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish to PowerShell Gallery
# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
publish-to-gallery:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build and publish
env:
NUGET_KEY: ${{ secrets.PSGALLERYAPI }}
shell: pwsh
run: |
Set-PSRepository psgallery -InstallationPolicy trusted
Install-Module ImportExcel, ExchangeOnlineManagement, Microsoft.Graph.Users, Microsoft.Graph.Groups, Microsoft.Graph.Identity.DirectoryManagement, Microsoft.Graph.Users.Actions, PSFramework, Microsoft.Identity.Client -confirm:$false -force
Publish-Module -Path ./ -NuGetApiKey $env:NUGET_KEY -Verbose

0 comments on commit 56762e4

Please sign in to comment.