Fix 1.9 issues with bedwars maps (#1235) #923
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 | |
on: | |
push: | |
branches: | |
- dev | |
workflow_dispatch: | |
jobs: | |
deploy: | |
permissions: | |
contents: read | |
packages: write | |
runs-on: ubuntu-latest | |
steps: | |
- id: checkout | |
name: Checkout | |
uses: actions/checkout@v3 | |
- id: setup-java | |
name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 8 | |
distribution: temurin | |
cache: maven | |
- id: deploy | |
name: Deploy Jar | |
run: mvn --batch-mode deploy | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- id: artifact | |
name: Upload Jar | |
uses: actions/upload-artifact@v3 | |
with: | |
name: PGM.jar | |
path: target/PGM.jar | |
if-no-files-found: error | |
- id: docker | |
name: Deploy Docker | |
run: | | |
mvn -pl server compile jib:build \ | |
-Djib.to.auth.username=${{ secrets.DOCKER_USERNAME }} \ | |
-Djib.to.auth.password=${{ secrets.DOCKER_PASSWORD }} \ | |
-Djib.to.image=${{ secrets.DOCKER_IMAGE }} \ | |
-Djib.to.tags=latest,${GITHUB_REF#refs/heads/},$(date +%F) |