-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ellet
committed
Nov 17, 2023
1 parent
980d3c7
commit 7719174
Showing
6 changed files
with
66 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: gradle/wrapper-validation-action@v1 | ||
|
||
- name: Setup JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 17 | ||
distribution: 'adopt' | ||
cache: gradle | ||
|
||
- name: Ensure Gradle is executable | ||
run: chmod +x gradlew | ||
|
||
- name: Query Browser Cache ID | ||
id: browser-cache-id | ||
run: echo "value=$(./gradlew -q :site:kobwebBrowserCacheId)" >> $GITHUB_OUTPUT | ||
|
||
- name: Build with Gradle | ||
run: ./gradlew build | ||
|
||
- name: Cache Browser Dependencies | ||
uses: actions/cache@v3 | ||
id: playwright-cache | ||
with: | ||
path: ~/.cache/ms-playwright | ||
key: ${{ runner.os }}-playwright-${{ steps.browser-cache-id.outputs.value }} | ||
|
||
- name: Fetch kobweb | ||
uses: robinraju/[email protected] | ||
with: | ||
repository: "varabyte/kobweb-cli" | ||
tag: "v${{ env.KOBWEB_CLI_VERSION }}" | ||
fileName: "kobweb-${{ env.KOBWEB_CLI_VERSION }}.zip" | ||
tarBall: false | ||
zipBall: false | ||
|
||
- name: Unzip kobweb | ||
run: unzip kobweb-${{ env.KOBWEB_CLI_VERSION }}.zip | ||
|
||
- name: Run export | ||
run: | | ||
cd site | ||
../kobweb-${{ env.KOBWEB_CLI_VERSION }}/bin/kobweb export --notty --layout static | ||
- name: Directories | ||
run: ls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters