From d0c944b2e631777e74c62de634bb4e5224cc2d8d Mon Sep 17 00:00:00 2001 From: Renee Vandervelde Date: Sat, 17 Aug 2024 11:50:50 -0500 Subject: [PATCH] Add site build action --- .github/workflows/pushes.yml | 23 +++++++++++++++++++++++ .github/workflows/release.yml | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pushes.yml b/.github/workflows/pushes.yml index 8a78305..f84b107 100644 --- a/.github/workflows/pushes.yml +++ b/.github/workflows/pushes.yml @@ -5,3 +5,26 @@ on: jobs: tests: uses: inkapplications/.github/.github/workflows/kmp-checks.yml@1.1.0 + publish-site: + name: Publish Site + needs: [tests] + runs-on: ubuntu-latest + steps: + - + name: Build Static Sample + run: ./gradlew sample-web:buildStatic sample-web:assemble + - + name: Create Deploy Directory + run: | + mkdir -p build/pages + cp -r sample-web/build/static/* build/pages/ + cp -r sample-web/build/dist/js/productionExecutable/* build/pages/ + mv build/pages/sample.html build/pages/index.html + - + name: Upload Pages Artifact + uses: actions/upload-pages-artifact@v3.0.1 + with: + path: build/pages + - + name: Deploy to GitHub Pages + uses: actions/deploy-pages@4.0.5 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 73cc15a..8dd6898 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,7 +8,7 @@ jobs: tests: name: Test uses: inkapplications/.github/.github/workflows/kmp-checks.yml@1.1.0 - publish: + publish-maven: name: Publish to Maven Central needs: [tests] secrets: inherit