-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build the site when something is pushed to main, or on PRs (#9)
There is room for improvement here, this is meant to be a first draft before we start merging other cleanup, to validate those merges. Fixes #7
- Loading branch information
Showing
4 changed files
with
59 additions
and
20 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,28 @@ | ||
name: Build gwt-site-webapp | ||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
distribution: 'temurin' | ||
cache: 'maven' | ||
|
||
- name: Compile the webapp to JS | ||
run: mvn --batch-mode --no-transfer-progress -e verify | ||
|
||
- name: Rename generated directory | ||
# Fixes issue where artifact zip contains top level directory due to wildcard expansion | ||
run: mv target/gwt-site-webapp-*/ target/gwt-site-webapp | ||
- name: Upload the generated JS | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: 'gwt-site-webapp' | ||
path: target/gwt-site-webapp/ |
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