sharefile-for-windows publish #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: sharefile-for-windows publish | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
paths: | |
- 'ShareFile-For-Windows/**' | |
jobs: | |
Test-sharefile-Package: | |
runs-on: windows-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: π¦ Pack Chocolatey Package | |
run: choco pack ShareFile-For-Windows/ShareFile-For-Windows.nuspec | |
- name: π Install Chocolatey Package | |
run: choco install sharefile-for-windows -y --debug --verbose --source "'.;https://community.chocolatey.org/api/v2/'" | |
Publish-sharefile-Package: | |
runs-on: windows-latest | |
needs: Test-sharefile-Package | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: π¦ Pack Chocolatey Package | |
run: choco pack sharefile-for-windows/sharefile-for-windows.nuspec | |
- name: π Set Chocolatey API-KEY | |
run: choco apikey --api-key ${{ secrets.API_KEY }} -source https://push.chocolatey.org/ | |
- name: π Push Chocolatey Package | |
run: choco push -source https://push.chocolatey.org/ |