use DOTENV_KEY in deploy job to set BOT_TOKEN env #7
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: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
name: π Deploy | |
runs-on: ubuntu-latest | |
environment: production | |
steps: | |
- name: β¬οΈ Checkout repo | |
uses: actions/checkout@v4 | |
- name: π Setup Fly | |
uses: superfly/flyctl-actions/setup-flyctl@master | |
- name: π Deploy Production | |
run: flyctl deploy --remote-only | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
DOTENV_KEY: ${{ secrets.DOTENV_KEY }} |