Skip to content

Commit

Permalink
Fix deploy (3).
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximDvinov committed Oct 22, 2023
1 parent 3e53272 commit 20f5d6e
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions .github/workflows/static.yml
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

0 comments on commit 20f5d6e

Please sign in to comment.