phantasmal-world/.github/workflows/deploy.yml

35 lines
739 B
YAML

name: Deploy
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build
run: './gradlew :web:jsBrowserDistribution'
- name: Deploy
uses: JamesIves/github-pages-deploy-action@3.6.2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: web/build/dist/js/productionExecutable
CLEAN: true