Merge pull request #179 from SongY123/main #16
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: Deploy CI Workflow | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Deploy | |
if: github.repository_owner == 'BUAA-BDA' | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: maven | |
- name: Build with Maven | |
run: ./scripts/build/package.sh | |
- name: Deploy to GitHub Packages | |
run: ./scripts/build/deploy.sh | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload Hu-Fu Release Artifact | |
uses: actions/[email protected] | |
with: | |
name: OpenHuFu-release | |
path: release |