Skip to content

Commit

Permalink
feat: production deploys
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4007 committed Feb 16, 2024
1 parent ea8c924 commit 821f81e
Show file tree
Hide file tree
Showing 2 changed files with 4,563 additions and 6,688 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/cloudflare-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,20 @@ jobs:
contents: read

steps:
- name: Check Cloudflare API Token
run: |
if [[ -z "${{ secrets.CLOUDFLARE_API_TOKEN }}" ]]; then
echo "CLOUDFLARE_API_TOKEN secret must be set" >&2
exit 1
fi
- name: Deploy to Cloudflare
uses: ubiquity/cloudflare-deploy-action@main
with:
cloudflare_api_token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
repository: ${{ github.repository }}
production_branch: ${{ github.event.repository.default_branch }}
output_directory: "static"
is_production: ${{ github.event_name == 'push' && github.ref == 'refs/heads/${{ github.event.repository.default_branch }}' }}
# env:
# Add any environment variables you need to pass along here
# SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
Expand Down
Loading

0 comments on commit 821f81e

Please sign in to comment.