File tree Expand file tree Collapse file tree 1 file changed +64
-0
lines changed
Expand file tree Collapse file tree 1 file changed +64
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish WasmJS
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches :
7+ - main
8+ - publish-WasmJS
9+ pull_request :
10+ branches :
11+ - main
12+ - publish-WasmJS
13+
14+ concurrency :
15+ group : wasmjs-${{ github.ref }}
16+ cancel-in-progress : true
17+
18+ permissions :
19+ contents : read
20+
21+ jobs :
22+ build-wasmjs :
23+ name : Build WasmJS Distribution
24+ runs-on : ubuntu-latest
25+ timeout-minutes : 20
26+
27+ steps :
28+ - name : Checkout
29+ uses : actions/checkout@v4
30+
31+ - name : Validate Gradle wrapper
32+ uses : gradle/actions/wrapper-validation@v4
33+
34+ - name : Setup JDK 21
35+ uses : actions/setup-java@v4
36+ with :
37+ java-version : ' 21'
38+ distribution : ' temurin'
39+
40+ - name : Grant execute permission
41+ run : chmod +x ./gradlew
42+
43+ - name : Setup Gradle
44+ uses : gradle/actions/setup-gradle@v4
45+ with :
46+ cache-read-only : ${{ github.ref != 'refs/heads/main' }}
47+ add-job-summary : on-failure
48+
49+ - name : Build WasmJS Distribution
50+ run : ./gradlew :composeApp:wasmJsBrowserDistribution --no-daemon --stacktrace
51+
52+ - name : Upload WasmJS Artifact
53+ uses : actions/upload-artifact@v4
54+ with :
55+ name : wasmjs-distribution
56+ path : composeApp/build/dist/wasmJs/productionExecutable/
57+ retention-days : 30
58+ if-no-files-found : error
59+
60+ - name : Publish to GitHub Pages
61+ uses : peaceiris/actions-gh-pages@v4
62+ with :
63+ github_token : ${{ secrets.GITHUB_TOKEN }}
64+ publish_dir : composeApp/build/dist/wasmJs/productionExecutable/
You can’t perform that action at this time.
0 commit comments