Skip to content

Commit

Permalink
Added Individual workflows for each corretto version
Browse files Browse the repository at this point in the history
ajshastri committed Dec 27, 2023
1 parent 47061cb commit f2e3289
Showing 5 changed files with 125 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/corretto-jdk-11-choco-push.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
25 changes: 25 additions & 0 deletions .github/workflows/corretto-jdk-17-choco-push.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
25 changes: 25 additions & 0 deletions .github/workflows/corretto-jdk-21-choco-push.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
25 changes: 25 additions & 0 deletions .github/workflows/corretto-jdk-8-choco-push.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
25 changes: 25 additions & 0 deletions .github/workflows/corretto-jdk-choco-push.yaml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit f2e3289

Please sign in to comment.