File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Publish
2+
3+ # configure manual trigger
4+ on :
5+ workflow_dispatch :
6+
7+ jobs :
8+ build :
9+ name : Test and Build
10+ runs-on : ubuntu-latest
11+ steps :
12+
13+ # Setup Java 1.8 environment for the next steps
14+ - name : Setup Java
15+ uses : actions/setup-java@v1
16+ with :
17+ java-version : 17
18+
19+ # Check out current repository
20+ - name : Fetch Sources
21+ uses : actions/checkout@v2
22+
23+ # Build application
24+ - name : Test and Build
25+ run : ./gradlew :composeApp:wasmJsBrowserProductionWebpack
26+
27+ # - name: Copy "uninstantiated" file over (workaround for now)
28+ # run: cp compose-web/build/compileSync/wasmJs/main/productionExecutable/kotlin/chip8.uninstantiated.mjs compose-web/build/dist/wasmJs/productionExecutable
29+
30+ # If main branch update, deploy to gh-pages
31+ - name : Deploy
32+ if : github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
33+ 34+ with :
35+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36+ BRANCH : gh-pages # The branch the action should deploy to.
37+ FOLDER : composeApp/build/dist/wasmJs/productionExecutable # The folder the action should deploy.
38+ CLEAN : true # Automatically remove deleted files from the deploy branch
You can’t perform that action at this time.
0 commit comments