Skip to content

Add a play-sound action (#1218) #914

Add a play-sound action (#1218)

Add a play-sound action (#1218) #914

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)