Skip to content

Merge pull request #23 from InkApplications/static-html #10

Merge pull request #23 from InkApplications/static-html

Merge pull request #23 from InkApplications/static-html #10

Workflow file for this run

name: Latest Build
on:
push:
branches: [master]
jobs:
tests:
uses: inkapplications/.github/.github/workflows/[email protected]
publish-site:
name: Publish Site
needs: [tests]
runs-on: ubuntu-latest
permissions:
id-token: write
pages: write
steps:
-
name: Checkout
uses: actions/[email protected]
-
name: Configure Java
uses: actions/[email protected]
with:
java-version: 17
distribution: temurin
-
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/[email protected]
with:
path: build/pages
-
name: Deploy to GitHub Pages
uses: actions/[email protected]