-
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 964 Bytes
/
trunk.yaml
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
name: Trunk Pipeline
on:
push:
branches:
- main
- test/*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK 11
uses: actions/[email protected]
with:
distribution: adopt-openj9
java-version: '11'
cache: gradle
- name: Extract Secrets
env:
SECRET_PROPS: ${{ secrets.SECRET_PROPERTIES }}
run: echo "$SECRET_PROPS" >> secret.properties
- name: Build Web Distribution
run: ./gradlew :examples:demo:jsBrowserDistribution --stacktrace
- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: 'examples/demo/build/distributions'
deploy-message: "Deploy from GitHub Actions"
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1