From 3308a223ed92e49fad0dfc8c565eda10c4686352 Mon Sep 17 00:00:00 2001 From: JunJangE Date: Mon, 12 May 2025 19:10:56 +0900 Subject: [PATCH 1/4] chore: publish --- .github/workflows/publish.yml | 51 +++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..aada77e --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,51 @@ +name: Publish Application on GitHub Pages +on: [push, pull_request] +jobs: + # Build job + build: + name: Build Kotlin/Wasm + runs-on: ubuntu-latest + steps: + - name: Set up JDK + uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: '11' + + - name: Checkout code + uses: actions/checkout@v3 + + - name: Run Gradle Tasks + run: ./gradlew jsBrowserDistribution --no-configuration-cache + + - name: Fix permissions + run: | + chmod -v -R +rX "composeApp/build/dist/js/productionExecutable/" | while read line; do + echo "::warning title=Invalid file permissions automatically fixed::$line" + done + + - name: Upload Pages artifact + uses: actions/upload-pages-artifact@v3 + with: + path: composeApp/build/dist/js/productionExecutable/ + + deploy: + # Add a dependency to the build job + needs: build + + # Grant GITHUB_TOKEN the permissions required to make a Pages deployment + permissions: + pages: write # to deploy to Pages + id-token: write # to verify the deployment originates from an appropriate source + + # Deploy to the github-pages environment + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + # Specify runner + deployment step + runs-on: ubuntu-latest + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 From a26d4490f2a069673294a4e86f349c3084b4be9a Mon Sep 17 00:00:00 2001 From: JunJangE Date: Mon, 12 May 2025 19:22:05 +0900 Subject: [PATCH 2/4] chore: publish --- .github/workflows/publish.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index aada77e..0d1591d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,7 +1,7 @@ name: Publish Application on GitHub Pages -on: [push, pull_request] +on: + workflow_dispatch: jobs: - # Build job build: name: Build Kotlin/Wasm runs-on: ubuntu-latest @@ -10,24 +10,24 @@ jobs: uses: actions/setup-java@v2 with: distribution: 'adopt' - java-version: '11' + java-version: '17' - name: Checkout code uses: actions/checkout@v3 - name: Run Gradle Tasks - run: ./gradlew jsBrowserDistribution --no-configuration-cache + run: ./gradlew wasmJsBrowserDistribution --no-configuration-cache - name: Fix permissions run: | - chmod -v -R +rX "composeApp/build/dist/js/productionExecutable/" | while read line; do + chmod -v -R +rX "composeApp/build/dist/wasmJs/productionExecutable/" | while read line; do echo "::warning title=Invalid file permissions automatically fixed::$line" done - name: Upload Pages artifact uses: actions/upload-pages-artifact@v3 with: - path: composeApp/build/dist/js/productionExecutable/ + path: composeApp/build/dist/wasmJs/productionExecutable/ deploy: # Add a dependency to the build job From a54f94ce3d16206cc384f050cc4a4b21ab0c19e7 Mon Sep 17 00:00:00 2001 From: JunJangE Date: Mon, 12 May 2025 19:28:21 +0900 Subject: [PATCH 3/4] chore: publish --- .github/workflows/publish.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0d1591d..f2d535f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,6 +1,5 @@ name: Publish Application on GitHub Pages -on: - workflow_dispatch: +on: [push, pull_request] jobs: build: name: Build Kotlin/Wasm From 9d7547ec6c2cb555c770e9c97b8308ae206d7db3 Mon Sep 17 00:00:00 2001 From: JunJangE Date: Sat, 17 May 2025 02:39:01 +0900 Subject: [PATCH 4/4] chore: publish --- .github/workflows/publish.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f2d535f..2388781 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,5 +1,11 @@ name: Publish Application on GitHub Pages -on: [push, pull_request] +on: + push: + branches: + - develop + pull_request: + branches: + - develop jobs: build: name: Build Kotlin/Wasm