From f2e328954505a11ecd0c5c226afd01567f1d799b Mon Sep 17 00:00:00 2001 From: Aditya Shastri Date: Wed, 27 Dec 2023 00:25:46 -0800 Subject: [PATCH] Added Individual workflows for each corretto version --- .../workflows/corretto-jdk-11-choco-push.yaml | 25 +++++++++++++++++++ .../workflows/corretto-jdk-17-choco-push.yaml | 25 +++++++++++++++++++ .../workflows/corretto-jdk-21-choco-push.yaml | 25 +++++++++++++++++++ .../workflows/corretto-jdk-8-choco-push.yaml | 25 +++++++++++++++++++ .../workflows/corretto-jdk-choco-push.yaml | 25 +++++++++++++++++++ 5 files changed, 125 insertions(+) create mode 100644 .github/workflows/corretto-jdk-11-choco-push.yaml create mode 100644 .github/workflows/corretto-jdk-17-choco-push.yaml create mode 100644 .github/workflows/corretto-jdk-21-choco-push.yaml create mode 100644 .github/workflows/corretto-jdk-8-choco-push.yaml create mode 100644 .github/workflows/corretto-jdk-choco-push.yaml diff --git a/.github/workflows/corretto-jdk-11-choco-push.yaml b/.github/workflows/corretto-jdk-11-choco-push.yaml new file mode 100644 index 0000000..aeaeacc --- /dev/null +++ b/.github/workflows/corretto-jdk-11-choco-push.yaml @@ -0,0 +1,25 @@ +# This file pushes the choco package for Corretto-11 + +name: Corretto-11 choco push workflow + +on: + workflow_dispatch: + push: + paths: + - 'corretto-jdk-11/corretto11jdk.nuspec' + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + - name: corretto-jdk-11 + shell: powershell + run: | + cd corretto-jdk-11 + choco pack + choco upgrade corretto11jdk --source . + choco push --source https://push.chocolatey.org/ -k $env:CHOCO_KEY + env: + CHOCO_KEY: ${{ secrets.CHOCO_KEY }} diff --git a/.github/workflows/corretto-jdk-17-choco-push.yaml b/.github/workflows/corretto-jdk-17-choco-push.yaml new file mode 100644 index 0000000..2388afd --- /dev/null +++ b/.github/workflows/corretto-jdk-17-choco-push.yaml @@ -0,0 +1,25 @@ +# This file pushes the choco package for Corretto-17 + +name: Corretto-17 choco push workflow + +on: + workflow_dispatch: + push: + paths: + - 'corretto-jdk-17/corretto17jdk.nuspec' + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + - name: corretto-jdk-17 + shell: powershell + run: | + cd corretto-jdk-17 + choco pack + choco upgrade corretto17jdk --source . + choco push --source https://push.chocolatey.org/ -k $env:CHOCO_KEY + env: + CHOCO_KEY: ${{ secrets.CHOCO_KEY }} diff --git a/.github/workflows/corretto-jdk-21-choco-push.yaml b/.github/workflows/corretto-jdk-21-choco-push.yaml new file mode 100644 index 0000000..b8a6a93 --- /dev/null +++ b/.github/workflows/corretto-jdk-21-choco-push.yaml @@ -0,0 +1,25 @@ +# This file pushes the choco package for Corretto-21 + +name: Corretto-21 choco push workflow + +on: + workflow_dispatch: + push: + paths: + - 'corretto-jdk-21/corretto21jdk.nuspec' + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + - name: corretto-jdk-21 + shell: powershell + run: | + cd corretto-jdk-21 + choco pack + choco upgrade corretto21jdk --source . + choco push --source https://push.chocolatey.org/ -k $env:CHOCO_KEY + env: + CHOCO_KEY: ${{ secrets.CHOCO_KEY }} diff --git a/.github/workflows/corretto-jdk-8-choco-push.yaml b/.github/workflows/corretto-jdk-8-choco-push.yaml new file mode 100644 index 0000000..b378d90 --- /dev/null +++ b/.github/workflows/corretto-jdk-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-jdk-8/corretto8jdk.nuspec' + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + - name: corretto-jdk-8 + shell: powershell + run: | + cd corretto-jdk-8 + choco pack + choco upgrade corretto8jdk --source . + choco push --source https://push.chocolatey.org/ -k $env:CHOCO_KEY + env: + CHOCO_KEY: ${{ secrets.CHOCO_KEY }} diff --git a/.github/workflows/corretto-jdk-choco-push.yaml b/.github/workflows/corretto-jdk-choco-push.yaml new file mode 100644 index 0000000..8f1017a --- /dev/null +++ b/.github/workflows/corretto-jdk-choco-push.yaml @@ -0,0 +1,25 @@ +# This file pushes the choco package for Corretto Base version + +name: Corretto Base version choco push workflow + +on: + workflow_dispatch: + push: + paths: + - 'corretto-jdk/correttojdk.nuspec' + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + - name: corretto-jdk + shell: powershell + run: | + cd corretto-jdk + choco pack + choco upgrade correttojdk --source . + choco push --source https://push.chocolatey.org/ -k $env:CHOCO_KEY + env: + CHOCO_KEY: ${{ secrets.CHOCO_KEY }}