fix(deps): update dependency com.github.seeseemelk:mockbukkit-v1.20 to v3.93.2 #1133
Workflow file for this run
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 | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Setup java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- name: Build | |
run: ./gradlew build | |
- name: Build (1.8.8) | |
run: ./gradlew build -PUSE_SPIGOT_8=true | |
dokka: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Setup java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- name: Build | |
run: ./gradlew dokkaHtml | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dokka | |
path: | | |
./build/dokka/html | |
retention-days: 7 | |
writerside: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Build Writerside docs using Docker | |
uses: JetBrains/writerside-github-action@v4 | |
with: | |
instance: Writerside/hi | |
artifact: webHelpHI2-all.zip | |
docker-version: 2.1.1479-p3869 | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: writerside | |
path: | | |
artifacts/webHelpHI2-all.zip | |
retention-days: 7 | |
benchmark: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- name: Run JMH | |
run: | | |
./gradlew jmh | |
- name: Store benchmark result | |
uses: benchmark-action/github-action-benchmark@v1 | |
with: | |
name: JMH Benchmark | |
tool: 'jmh' | |
output-file-path: build/results/jmh/results.json | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
auto-push: true | |
gh-pages-branch: benchmark | |
alert-threshold: '200%' | |
comment-on-alert: true | |
fail-on-alert: true | |
alert-comment-cc-users: '@sya-ri' | |
summary-always: true | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: benchmark | |
path: | | |
./index.html | |
./data.js | |
retention-days: 7 | |
deploy: | |
needs: [writerside, dokka, benchmark] | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/master' | |
permissions: | |
id-token: write | |
pages: write | |
steps: | |
- name: Download artifact (writerside) | |
uses: actions/download-artifact@v4 | |
with: | |
name: writerside | |
- name: Create api-docs directory | |
run: mkdir dir/api-docs -p | |
- name: Download artifact (dokka) | |
uses: actions/download-artifact@v4 | |
with: | |
name: dokka | |
path: dir/api-docs | |
- name: Unzip artifact | |
uses: montudor/action-zip@v1 | |
with: | |
args: unzip -qq webHelpHI2-all.zip -d dir | |
- name: Download artifact (benchmark) | |
uses: actions/download-artifact@v4 | |
with: | |
name: benchmark | |
path: dir/benchmark | |
- name: Setup Pages | |
uses: actions/configure-pages@v5 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: dir | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |