-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e53272
commit 20f5d6e
Showing
1 changed file
with
17 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,29 @@ | ||
name: Deploy to GitHub Pages | ||
|
||
name: Build and Deploy | ||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build_and_deploy: | ||
build-and-deploy: | ||
concurrency: ci-${{ github.ref }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set execute permissions for gradlew | ||
run: chmod +x ./gradlew | ||
- name: Setup Java | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 19 | ||
|
||
- name: Build Kotlin/JS application | ||
run: ./gradlew jsBrowserProductionWebpack | ||
- name: Build | ||
run: ./gradlew jsBrowserDistribution | ||
|
||
- name: Deploy | ||
uses: JamesIves/github-pages-deploy-action@4.1.5 | ||
- name: Deploy 🚀 | ||
uses: JamesIves/github-pages-deploy-action@v4 #https://github.com/marketplace/actions/deploy-to-github-pages | ||
with: | ||
branch: gh-pages | ||
folder: build/distributions | ||
folder: build/dist/js/productionExecutable |