-
Notifications
You must be signed in to change notification settings - Fork 21
35 lines (29 loc) · 1.01 KB
/
build-and-publish-web.yml
File metadata and controls
35 lines (29 loc) · 1.01 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
name: Build and Publish
# configure manual trigger
on:
workflow_dispatch:
jobs:
build:
name: Test and Build
runs-on: ubuntu-latest
steps:
# Setup Java 1.8 environment for the next steps
- name: Setup Java
uses: actions/setup-java@v5
with:
distribution: 'zulu'
java-version: 17
# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v5
# Build application
- name: Build
run: ./gradlew :composeApp:wasmJsBrowserDistribution
# If main branch update, deploy to gh-pages
- name: Deploy
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
uses: JamesIves/github-pages-deploy-action@v4.7.3
with:
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: composeApp/build/dist/wasmJs/productionExecutable # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch