Merge pull request #17 from ManInMyVan/dependabot/github_actions/acti… #51
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: Build and Deploy | |
on: | |
push: | |
branches: ["main"] | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Java | |
uses: actions/[email protected] | |
with: | |
java-version: 8 | |
distribution: "adopt" | |
- name: Checkout Repository | |
uses: actions/[email protected] | |
- name: Compile with Gradle | |
run: gradle kotlinUpgradeYarnLock build | |
- name: Setup Pages | |
uses: actions/[email protected] | |
- name: Build with Jekyll | |
uses: actions/[email protected] | |
with: | |
source: ./build/dist/js/productionExecutable | |
destination: ./_site | |
- name: Upload artifact | |
uses: actions/[email protected] | |
deploy: | |
name: Deploy | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/[email protected] |