Skip to content

Commit

Permalink
Added github actions to publish to the PowerShell gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
gildas committed Jan 27, 2024
1 parent a09bced commit daa61b0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Publish
on:
push:
branches: [ master ]
workflow_dispatch:

jobs:
build:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Publish
env:
NUGET_API_KEY: ${{ secrets.NUGET_APIKEY }}
run: .\publish.ps1
shell: pwsh
2 changes: 2 additions & 0 deletions publish.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
$ModulePath = "$PSScriptRoot\posh-vpn"
Publish-Module -Path $ModulePath -NuGetApiKey $Env:NUGET_APIKEY

0 comments on commit daa61b0

Please sign in to comment.