Fix env refs to use {{#env:VAR}} syntax in blog YAML examples #57
This file contains hidden or 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 to Fly.io | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| deploy: | |
| name: Deploy app | |
| runs-on: ubuntu-latest | |
| concurrency: deploy-group | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| # Generate sitemap with accurate lastmod dates from git history | |
| - run: node scripts/generate-sitemap.js | |
| # Migrate any Supabase-hosted blog images to Tigris and update MDX refs | |
| - name: Migrate Supabase images to Tigris | |
| env: | |
| AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| AWS_ENDPOINT_URL_S3: ${{ secrets.AWS_ENDPOINT_URL_S3 }} | |
| AWS_REGION: ${{ secrets.AWS_REGION }} | |
| BUCKET_NAME: ${{ secrets.BUCKET_NAME }} | |
| run: bash content/blog/images/migrate-supabase-to-tigris.sh | |
| - uses: superfly/flyctl-actions/setup-flyctl@master | |
| - run: flyctl deploy --remote-only | |
| env: | |
| FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} |