Fix javadoc errors #2
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: Publish package to GitHub Packages | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: oracle | |
cache: maven | |
- name: Install dependencies | |
run: | | |
git clone --no-tags --depth 1 https://github.com/EaseCation/Network.git target/Network | |
cd target/Network | |
mvn -B clean install | |
- name: Publish package | |
run: mvn -B clean source:jar javadoc:jar deploy -P github | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |