File tree 1 file changed +51
-0
lines changed
1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish Application on GitHub Pages
2
+ on : [push, pull_request]
3
+ jobs :
4
+ # Build job
5
+ build :
6
+ name : Build Kotlin/Wasm
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - name : Set up JDK
10
+ uses : actions/setup-java@v2
11
+ with :
12
+ distribution : ' adopt'
13
+ java-version : ' 17'
14
+
15
+ - name : Checkout code
16
+ uses : actions/checkout@v3
17
+
18
+ - name : Run Gradle Tasks
19
+ run : ./gradlew wasmJsBrowserProductionWebpack
20
+
21
+ - name : Fix permissions
22
+ run : |
23
+ chmod -v -R +rX "composeApp/build/dist/wasmJs/productionExecutable/" | while read line; do
24
+ echo "::warning title=Invalid file permissions automatically fixed::$line"
25
+ done
26
+
27
+ - name : Upload Pages artifact
28
+ uses : actions/upload-pages-artifact@v3
29
+ with :
30
+ path : composeApp/build/dist/wasmJs/productionExecutable/
31
+
32
+ deploy :
33
+ # Add a dependency to the build job
34
+ needs : build
35
+
36
+ # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
37
+ permissions :
38
+ pages : write # to deploy to Pages
39
+ id-token : write # to verify the deployment originates from an appropriate source
40
+
41
+ # Deploy to the github-pages environment
42
+ environment :
43
+ name : github-pages
44
+ url : ${{ steps.deployment.outputs.page_url }}
45
+
46
+ # Specify runner + deployment step
47
+ runs-on : ubuntu-latest
48
+ steps :
49
+ - name : Deploy to GitHub Pages
50
+ id : deployment
51
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments