forked from ballerina-platform/ballerina-lang
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.52 KB
/
CD_publish_snapshot.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Publish Ballerina Snapshot
on:
push:
branches:
- master
workflow_dispatch:
jobs:
publish-ballerina-lang:
name: Build and Publish Ballerina Lang
runs-on: ubuntu-latest
if: github.repository_owner == 'ballerina-platform'
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Initialize Sub Modules
run: git submodule update --init
- name: Build and Publish
env:
NEXUS_USERNAME: ${{ secrets.BALLERINA_BOT_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.BALLERINA_BOT_TOKEN }}
run: |
./gradlew publish -x test -x check -PpublishToGithub
- name: Trigger Standard Library Module Builds
run: |
echo "Triggering stdlib module builds"
curl --request \
POST 'https://api.github.com/repos/ballerina-platform/ballerina-standard-library/dispatches' \
--header 'Accept: application/vnd.github.v3+json' \
--header 'Authorization: Bearer ${{ secrets.BALLERINA_BOT_TOKEN }}' \
--header 'Content-Type: application/json' \
--data-raw '{
"event_type": "ballerina-lang-push"
}'