Skip to content

Commit

Permalink
ci: use single action
Browse files Browse the repository at this point in the history
  • Loading branch information
rndquu committed Mar 18, 2024
1 parent 7ff0ab7 commit 90671ef
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,18 @@ on:

jobs:
deploy-to-cloudflare:
uses: ubiquity/.github/.github/workflows/deploy.yml@main
secrets: inherit
name: Automatic Cloudflare Deploy
runs-on: ubuntu-22.04
steps:
- name: Deploy to Cloudflare
if: ${{ github.event.workflow_run.conclusion == 'success' }}
uses: ubiquity/cloudflare-deploy-action@main
with:
repository: ${{ github.repository }}
production_branch: ${{ github.event.repository.default_branch }}
output_directory: "static"
current_branch: ${{ github.event.workflow_run.head_branch }}
cloudflare_account_id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
cloudflare_api_token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
commit_sha: ${{ github.event.workflow_run.head_sha }}
workflow_run_id: ${{ github.event.workflow_run.id }}

0 comments on commit 90671ef

Please sign in to comment.