Skip to content

Commit

Permalink
Update GitHub actions yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ldclakmal committed Oct 20, 2021
1 parent 74d30a4 commit 101a564
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,23 @@ jobs:
build:
name: Build Extension
runs-on: ubuntu-latest
env:
BALLERINA_VERSION: ${{ secrets.BALLERINA_VERSION }}
steps:
- uses: actions/checkout@v2
- name: Ballerina Build
uses: ballerina-platform/ballerina-action/@master
- name: Build with Gradle
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Download & Install Ballerina
env:
packageUser: ${{ secrets.BALLERINA_BOT_USERNAME }}
packagePAT: ${{ secrets.BALLERINA_BOT_TOKEN }}
BALLERINA_VERSION: ${{ secrets.BALLERINA_VERSION }}
run: |
./gradlew build
wget https://dist.ballerina.io/downloads/$BALLERINA_VERSION/ballerina-linux-installer-x64-$BALLERINA_VERSION.deb
sudo dpkg -i ballerina-linux-installer-x64-$BALLERINA_VERSION.deb
sudo apt-get install -f
bal -v
- name: Build with Gradle
env:
packageUser: ${{ secrets.BOT_USERNAME }}
packagePAT: ${{ secrets.BOT_TOKEN }}
run: ./gradlew build

0 comments on commit 101a564

Please sign in to comment.