Skip to content

Merge pull request #4 from hypercerts-org/feat/gha_auto_deploy #1

Merge pull request #4 from hypercerts-org/feat/gha_auto_deploy

Merge pull request #4 from hypercerts-org/feat/gha_auto_deploy #1

# NOTE: This name appears in GitHub's Checks API and in workflow's status badge.
name: deploy-cors-proxy
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
# Trigger the workflow when:
on:
# A push occurs to one of the matched branches.
push:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
deploy-cors-proxy:
# NOTE: This name appears in GitHub's Checks API.
name: deploy-cors-proxy
environment: deploy
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Publish
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
workingDirectory: 'cors-proxy'
command: publish