Skip to content

Commit

Permalink
Add GitHub Actions workflow for automatic deployment on PR merge
Browse files Browse the repository at this point in the history
  • Loading branch information
mbakgun committed Nov 16, 2024
1 parent c282a3a commit 6b0f983
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy to GitHub Pages

on:
pull_request:
types: [closed]
branches: [master]

jobs:
build-and-deploy:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'

- name: Build
run: ./gradlew :composeApp:wasmJsBrowserProductionWebpack

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: composeApp/build/dist/wasmJs/productionExecutable
clean: true

0 comments on commit 6b0f983

Please sign in to comment.