Add release.(yml) Github Actions (#21)

It will push on PSGallery module when release a new version !
This commit is contained in:
Alexis La Goutte 2021-07-23 22:12:46 +02:00 committed by GitHub
parent 8167b0dbf0
commit 42b00279cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

16
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,16 @@
name: Release
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Publish
run: |
pwsh -Command "Publish-Module -Path ./NetboxPS -NuGetApiKey ${{ secrets.PSGALLERY_API_KEY }}"