Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
chore: debug cd
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4007 committed Feb 19, 2024
1 parent 9a8fc77 commit d61f01e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 68 deletions.
42 changes: 14 additions & 28 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: Build & Deploy
on:
push:

Expand All @@ -21,33 +21,6 @@ jobs:
yarn
yarn build
- name: Copy files excluding .gitignore
run: |
mkdir preserved
rsync -av --progress . preserved --exclude-from='.gitignore'
- name: Upload preserved directory
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: preserved

# name: Deploy to Cloudflare Pages

# on:
# workflow_dispatch:
# workflow_run:
# workflows: ["Build"] # Needs to build first before we can deploy.
# types:
# - completed

# jobs:
# deploy-to-cloudflare:
# name: Deploy to Cloudflare Pages
# runs-on: ubuntu-22.04
# permissions:
# contents: read
# steps:
- name: Check Cloudflare API Token
id: check_token
run: |
Expand All @@ -59,6 +32,19 @@ jobs:
fi
shell: bash

# - name: Copy files excluding .gitignore
# if: steps.check_token.outputs.skip != 'true'
# run: |
# mkdir preserved
# rsync -av --progress . preserved --exclude-from='.gitignore'

# - name: Upload preserved directory
# if: steps.check_token.outputs.skip != 'true'
# uses: actions/upload-artifact@v4
# with:
# name: build-artifacts
# path: preserved

- name: Deploy to Cloudflare
if: steps.check_token.outputs.skip != 'true'
uses: ubiquity/cloudflare-deploy-action@main
Expand Down
40 changes: 0 additions & 40 deletions .github/workflows/cloudflare-deploy.yml

This file was deleted.

0 comments on commit d61f01e

Please sign in to comment.