Skip to content

Commit

Permalink
Merge pull request #826 from LakshanSS/2201.0.0
Browse files Browse the repository at this point in the history
[2201.0.0] Add dev-stg-release.yaml
  • Loading branch information
LakshanSS authored Nov 21, 2023
2 parents c439337 + 592cbf6 commit fa97c05
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/dev-stg-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Dev/Staging BCentral Release

on:
workflow_dispatch:
inputs:
bal_central_environment:
description: Ballerina Central Environment
type: choice
options:
- STAGE
- DEV
required: true

jobs:
release:
runs-on: ubuntu-latest
env:
BALLERINA_${{ github.event.inputs.bal_central_environment }}_CENTRAL: true
container:
image: ballerina/ballerina:2201.0.0
options: --user root
steps:
- name: Install Git
run: apk --no-cache add git
- uses: actions/checkout@v2

- name: Push to Staging
if: github.event.inputs.bal_central_environment == 'STAGE'
env:
BALLERINA_CENTRAL_ACCESS_TOKEN: ${{ secrets.BALLERINA_CENTRAL_STAGE_ACCESS_TOKEN }}
JAVA_OPTS: -DBALLERINA_DEV_COMPILE_BALLERINA_ORG=true
run: |
./gradlew build -Prelease=true -Premote=true
- name: Push to Dev
if: github.event.inputs.bal_central_environment == 'DEV'
env:
BALLERINA_CENTRAL_ACCESS_TOKEN: ${{ secrets.BALLERINA_CENTRAL_DEV_ACCESS_TOKEN }}
JAVA_OPTS: -DBALLERINA_DEV_COMPILE_BALLERINA_ORG=true
run: |
./gradlew build -Prelease=true -Premote=true

0 comments on commit fa97c05

Please sign in to comment.