Skip to content

Build

Build #3

Workflow file for this run

name: Build
on: workflow_dispatch
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
java-version: 17
- name: Install jcargo
run: cargo install --git https://github.com/heipiao233/jcargo --rev 7e2da83c
- name: Build
run: jcargo package
- name: Upload GitHub Pages artifact
uses: actions/[email protected]
with:
path: target/artifacts
deploy:
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/deploy-pages@v4