Skip to content

Commit

Permalink
Publish via GitHub pages
Browse files Browse the repository at this point in the history
We used to per-PR versions of copy-cat too. But given we no longer do
that, can probably move to GH pages.
  • Loading branch information
SquidDev committed Jun 18, 2024
1 parent 0b67c68 commit 20c2088
Showing 1 changed file with 32 additions and 6 deletions.
38 changes: 32 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,47 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: 📥 Clone repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Set up Java
uses: actions/setup-java@v1
- name: 📥 Set up Java
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'

- name: Setup node.js
- name: 📥 Setup node.js
run: npm ci

- name: Build with Gradle
- name: ⚒️ Build
run: ./gradlew assemble

- name: Lint JS/TS
- name: 💡 Lint
run: npm run --silent lint

- name: 📤 Upload site
uses: actions/upload-pages-artifact@v3
with:
path: build/webMin
retention-days: 1

deploy:
name: Publish
needs: build
if: ${{ github.ref_name == 'master' }}

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: 🚀 Deploy
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 20c2088

Please sign in to comment.