Fly Deploy #51
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: Fly Deploy | |
on: workflow_dispatch | |
permissions: | |
contents: read | |
jobs: | |
deploy: | |
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}} | |
runs-on: ubuntu-latest | |
concurrency: deploy-group | |
strategy: | |
matrix: | |
otp: ['26'] | |
elixir: ['1.16.1'] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{matrix.otp}} | |
elixir-version: ${{matrix.elixir}} | |
- run: mix deps.get | |
- run: mix compile --warnings-as-errors | |
- run: mix release | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- run: | | |
flyctl deploy --remote-only --build-arg ICB_TOKEN=${{ secrets.ICB_TOKEN }} | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
ICB_TOKEN: ${{ secrets.ICB_TOKEN }} |