Skip to content

Commit

Permalink
New Deployment System
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick330602 committed Mar 3, 2021
1 parent a7d9cab commit 1ab942e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Deployment
on:
release:
types: [created]
jobs:
deploy:
name: Deployment
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- name: Push
env:
NUGET_KEY: ${{ secrets.NUGET_KEY }}
run: |
./publish.ps1 -GalleryApiKey $env:NUGET_KEY
2 changes: 1 addition & 1 deletion publish.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ param(
)

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$env:PSModulePath = $env:PSModulePath + [System.IO.Path]::PathSeparator + "$(pwd)"
$env:PSModulePath = $env:PSModulePath + [System.IO.Path]::PathSeparator + "$(Get-Location)"
Publish-Module -Name PsUWI -NuGetApiKey $GalleryApiKey

0 comments on commit 1ab942e

Please sign in to comment.