From 42b00279cb73ba0be99e9a62892f3540f561a243 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Fri, 23 Jul 2021 22:12:46 +0200 Subject: [PATCH] Add release.(yml) Github Actions (#21) It will push on PSGallery module when release a new version ! --- .github/workflows/release.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..7269292 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 }}"