Skip to content

use direct gradle task #11

use direct gradle task

use direct gradle task #11

Workflow file for this run

name: deploy
on: [push, workflow_dispatch]
jobs:
build:
strategy:
matrix:
java: [21]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
permissions:
contents: write
steps:
- name: Checking Out the Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Validating the Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Setting up Java ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
java-package: jdk
- name: Setting Up the Gradle Wrapper
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew
- name: Caching Dependencies
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-#{{ hashFiles('**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Fix Permissions
run: |
chmod -c -R +rX "docs/" | while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
- name: Export
working-directory: ./site
run: ./gradlew kobwebExport -PkobwebReuseServer=false -PkobwebEnv=DEV -PkobwebRunLayout=KOBWEB -PkobwebBuildTarget=RELEASE -PkobwebExportLayout=static
- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v2
with:
path: "docs/"
deploy:
needs: build
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3