disable cf deployment ci
This commit is contained in:
parent
9f7a70ac77
commit
a56259827a
1 changed files with 30 additions and 30 deletions
|
@ -47,33 +47,33 @@ jobs:
|
|||
apt update && apt install rsync -y
|
||||
rsync -av --delete -e "ssh -p ${{ secrets.SSH_PORT }}" public/ ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }}:${{ secrets.WEB_ROOT }}
|
||||
|
||||
deploy-to-cloudflare:
|
||||
needs: build
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: |
|
||||
wrangler
|
||||
- name: Get build artifacts
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: public
|
||||
path: public/
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 'latest'
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
cd wrangler
|
||||
npm install
|
||||
- name: Publish to Cloudflare
|
||||
uses: https://github.com/cloudflare/wrangler-action@2.0.0
|
||||
with:
|
||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
workingDirectory: wrangler
|
||||
command: deploy
|
||||
env:
|
||||
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
# deploy-to-cloudflare:
|
||||
# needs: build
|
||||
# runs-on: docker
|
||||
# steps:
|
||||
# - name: Checkout
|
||||
# uses: actions/checkout@v4
|
||||
# with:
|
||||
# sparse-checkout: |
|
||||
# wrangler
|
||||
# - name: Get build artifacts
|
||||
# uses: actions/download-artifact@v3
|
||||
# with:
|
||||
# name: public
|
||||
# path: public/
|
||||
# - name: Setup Node
|
||||
# uses: actions/setup-node@v4
|
||||
# with:
|
||||
# node-version: 'latest'
|
||||
# - name: Install Dependencies
|
||||
# run: |
|
||||
# cd wrangler
|
||||
# npm install
|
||||
# - name: Publish to Cloudflare
|
||||
# uses: https://github.com/cloudflare/wrangler-action@2.0.0
|
||||
# with:
|
||||
# apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
# workingDirectory: wrangler
|
||||
# command: deploy
|
||||
# env:
|
||||
# CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
|
|
Reference in a new issue