Merge pull request #41 from jorbush/safari-ios-bug #37
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 Backend | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
deploy: | |
name: Deploy to Fly.io | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: postrify-backend | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Build with Maven | |
run: mvn clean package -DskipTests | |
- name: Install Flyctl | |
uses: superfly/flyctl-actions/setup-flyctl@master | |
- name: Set Fly.io Secrets | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
run: | | |
flyctl secrets set SPRING_DATASOURCE_URL="${{ secrets.SPRING_DATASOURCE_URL }}" | |
flyctl secrets set SPRING_DATASOURCE_USERNAME="${{ secrets.SPRING_DATASOURCE_USERNAME }}" | |
flyctl secrets set SPRING_DATASOURCE_PASSWORD="${{ secrets.SPRING_DATASOURCE_PASSWORD }}" | |
flyctl secrets set APP_JWTSECRET="${{ secrets.APP_JWTSECRET }}" | |
- name: Deploy to Fly.io | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
run: flyctl deploy --remote-only |