Fix respawn on all versions #53
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: Maven Package | |
on: | |
release: | |
types: [created] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 21 | |
server-id: github | |
settings-path: ${{ github.workspace }} | |
- name: Download Server dependencies | |
run: | | |
chmod +x "${{ github.workspace }}/scripts/download-spigot.sh" | |
${{ github.workspace }}/scripts/download-spigot.sh "${{ github.workspace }}" | |
- name: Download Mapping dependencies | |
run: | | |
chmod +x "${{ github.workspace }}/scripts/download-mapping.sh" | |
${{ github.workspace }}/scripts/download-mapping.sh "${{ github.workspace }}" | |
- name: Install Mapping dependencies | |
run: | | |
chmod +x "${{ github.workspace }}/scripts/install-mapping.sh" | |
${{ github.workspace }}/scripts/install-mapping.sh "${{ github.workspace }}" | |
- name: Building maven project | |
run: mvn -B package | |
- name: Publish to GitHub Packages | |
run: mvn deploy -s ${{ github.workspace }}/settings.xml | |
env: | |
GITHUB_TOKEN: ${{ github.token }} |