refactor: Moved lobby status message to main update loop #20
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 Server - Dev | |
on: | |
push: | |
branches: | |
- development | |
jobs: | |
deploy: | |
name: Deploy app | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./backend | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" # See 'Supported distributions' for available options | |
java-version: "11" | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2.4.2 | |
- name: Run Tests | |
run: ./gradlew test | |
- name: Build JAR with Gradle | |
run: ./gradlew jar && mkdir target && mv build/libs/secret-hitler-online.jar target/secret-hitler-online.jar --force | |
- name: Replace standard Dockerfile with debug version | |
run: rm ./Dockerfile && cp ./config/Dockerfile.dev ./Dockerfile | |
- name: Setup Fly | |
uses: superfly/flyctl-actions/setup-flyctl@master | |
- name: Deploy to Fly | |
run: flyctl deploy -a "secret-hitler-online-dev" --remote-only | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN_DEV }} |