Skip to content

Tweak flags & gamemodes, add gamemode to votebook (#1210) #908

Tweak flags & gamemodes, add gamemode to votebook (#1210)

Tweak flags & gamemodes, add gamemode to votebook (#1210) #908

Workflow file for this run

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)