-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (30 loc) · 1005 Bytes
/
publish.yml
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
name: Kotlin/WASM Build and Deploy
on:
push:
branches: [main]
workflow_dispatch: # Allows manual triggering
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Java JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Gradle and build project
uses: gradle/gradle-build-action@v3
- name: Grant Permission to Execute Gradle
run: chmod +x gradlew
- name: Generate WASM distribution
run: ./gradlew wasmJsBrowserDistribution
- name: Deploy to Vercel
uses: amondnet/vercel-action@v25
with:
vercel-args: '--prod'
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
vercel-token: ${{ secrets.VERCEL_TOKEN }}
working-directory: ./build/dist/wasmJs/productionExecutable