Merge remote-tracking branch 'origin/dev' into pr/cvsouth/281
This commit is contained in:
commit
d25baf5eb4
13
.github/workflows/publish.yaml
vendored
13
.github/workflows/publish.yaml
vendored
|
|
@ -34,9 +34,6 @@ permissions:
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
GITHUB_HEAD_REF: ${{ github.event.pull_request.head.sha }}
|
|
||||||
|
|
||||||
name: Publish to Cloudflare Pages
|
name: Publish to Cloudflare Pages
|
||||||
# push event in main branch
|
# push event in main branch
|
||||||
# workflow_dispatch event
|
# workflow_dispatch event
|
||||||
|
|
@ -59,12 +56,6 @@ jobs:
|
||||||
ref: ${{ github.event.pull_request.head.sha || github.ref }}
|
ref: ${{ github.event.pull_request.head.sha || github.ref }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Print pull request head information
|
|
||||||
run: |
|
|
||||||
echo "Pull Request SHA: ${{ github.event.pull_request.head.sha }}"
|
|
||||||
echo "Pull Request Ref: ${{ github.event.pull_request.head.ref }}"
|
|
||||||
echo "Pull Request Env: ${{ env.GITHUB_HEAD_REF }}"
|
|
||||||
|
|
||||||
# Run a build step here
|
# Run a build step here
|
||||||
- name: Setup Node.js environment
|
- name: Setup Node.js environment
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
|
|
@ -98,7 +89,7 @@ jobs:
|
||||||
|
|
||||||
# Run a action to publish docs
|
# Run a action to publish docs
|
||||||
- name: Publish to Cloudflare Pages
|
- name: Publish to Cloudflare Pages
|
||||||
uses: zernonia/cloudflare-pages-action@v0.0.2
|
uses: zernonia/cloudflare-pages-action@v0.0.6
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
|
|
@ -108,7 +99,7 @@ jobs:
|
||||||
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
|
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# Optional: Switch what branch you are publishing to.
|
# Optional: Switch what branch you are publishing to.
|
||||||
# By default this will be the branch which triggered this workflow
|
# By default this will be the branch which triggered this workflow
|
||||||
# branch: main
|
branch: refs/pull/${{ github.event.number }}/merge
|
||||||
# Optional: Change the working directory
|
# Optional: Change the working directory
|
||||||
workingDirectory: apps/www
|
workingDirectory: apps/www
|
||||||
wranglerVersion: '3'
|
wranglerVersion: '3'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user