diff --git a/.github/workflows/corretto-jre-8-choco-push.yaml b/.github/workflows/corretto-jre-8-choco-push.yaml new file mode 100644 index 0000000..fe7122d --- /dev/null +++ b/.github/workflows/corretto-jre-8-choco-push.yaml @@ -0,0 +1,25 @@ +# This file pushes the choco package for Corretto-8 + +name: Corretto-8 choco push workflow + +on: + workflow_dispatch: + push: + paths: + - 'corretto-jre-8/corretto8jre.nuspec' + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + - name: corretto-jre-8 + shell: powershell + run: | + cd corretto-jre-8 + choco pack + choco upgrade corretto8jre --source . + choco push --source https://push.chocolatey.org/ -k $env:CHOCO_KEY + env: + CHOCO_KEY: ${{ secrets.CHOCO_KEY }}