-
Notifications
You must be signed in to change notification settings - Fork 264
34 lines (25 loc) · 893 Bytes
/
web.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
name: Web CI
on: pull_request
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- name: kotlinUpgradeYarnLock
run: ./gradlew kotlinUpgradeYarnLock
- name: Build web app
run: ./gradlew :compose-web:assemble
# If main branch update, deploy to gh-pages
# - name: Deploy
# if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
# uses: JamesIves/[email protected]
# with:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# BRANCH: gh-pages # The branch the action should deploy to.
# FOLDER: web/build/distributions # The folder the action should deploy.
# CLEAN: true # Automatically remove deleted files from the deploy branch