-
Notifications
You must be signed in to change notification settings - Fork 5
42 lines (35 loc) · 1.3 KB
/
release.yml
File metadata and controls
42 lines (35 loc) · 1.3 KB
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
name: Publish samples to Github Pages
on:
release:
types: [ created ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: koalaplot-samples
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'corretto'
cache: 'gradle'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build koalaplot-samples
run: ./gradlew build
working-directory: koalaplot-samples
- name: Build js koalaplot-samples
run: ./gradlew composeCompatibilityBrowserDistribution
working-directory: koalaplot-samples
- name: Deploy compose-web samples to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v4
with:
target_branch: gh-pages
build_dir: koalaplot-samples/webApp/build/dist/composeWebCompatibility
keep_history: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}