Skip to content

Commit

Permalink
feature/auto-deploy (#4)
Browse files Browse the repository at this point in the history
* Add GitHub Actions workflow for automatic deployment on PR merge

* Remove pull_request_target trigger from auto-merge workflow configuration
  • Loading branch information
mbakgun authored Nov 16, 2024
1 parent c282a3a commit 2912805
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ on:
pull_request:
branches:
- master
pull_request_target:
branches:
- master

jobs:
auto-merge:
Expand Down
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 2912805

Please sign in to comment.