Merge pull request #21 from InkApplications/static-html #8
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
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 | |
steps: | |
- | |
name: Checkout | |
uses: actions/[email protected] | |
- | |
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] |