You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2021/12/12 15:14:21 UTC
[apisix-website] branch chore-forcr-asf-site created (now 3f84f30)
This is an automated email from the ASF dual-hosted git repository.
juzhiyuan pushed a change to branch chore-forcr-asf-site
in repository https://gitbox.apache.org/repos/asf/apisix-website.git.
at 3f84f30 chore: support force orphan
This branch includes the following new commits:
new 3f84f30 chore: support force orphan
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[apisix-website] 01/01: chore: support force orphan
Posted by ju...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
juzhiyuan pushed a commit to branch chore-forcr-asf-site
in repository https://gitbox.apache.org/repos/asf/apisix-website.git
commit 3f84f306e2609111d219aa1d5402b1e1b9cebdb2
Author: juzhiyuan <ju...@apache.org>
AuthorDate: Sun Dec 12 23:14:09 2021 +0800
chore: support force orphan
---
.github/workflows/deploy.yml | 1 +
.github/workflows/preview.yml | 52 -------------------------------------------
2 files changed, 1 insertion(+), 52 deletions(-)
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 63646e3..4bb588a 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -53,3 +53,4 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: website/build
publish_branch: asf-site
+ force_orphan: true
diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml
deleted file mode 100644
index 6401bd0..0000000
--- a/.github/workflows/preview.yml
+++ /dev/null
@@ -1,52 +0,0 @@
-name: Preview Pull Request
-
-on:
- push:
- pull_request:
- branches: [master]
-
-jobs:
- build:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2.4.0
-
- - name: Setup Node.js environment
- uses: actions/setup-node@v2.5.0
- with:
- node-version: 14.x
-
- - name: Install Dependencies
- run: |
- cd scripts && yarn install
- cd ../website && yarn install
-
- - name: Sync documents
- run: |
- cd scripts && yarn sync && git status
-
- - name: Build
- run: |
- cd website && yarn build
- cp ../.asf.yaml ./build
-
- - name: Compress build artifacts
- run: |
- mkdir artifact && cd artifact
- tar cvzf - ../website/build | split -d -b 90m - website
-
- - name: Archive artifacts to GitHub
- uses: actions/upload-artifact@v2
- with:
- name: artifact.zip
- path: artifact
- retention-days: 5
-
- - name: Deploy Preview
- uses: amondnet/vercel-action@v20
- with:
- github-token: ${{ secrets.GITHUB_TOKEN }}
- vercel-token: ${{ secrets.VERCEL_TOKEN }}
- vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
- vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
- working-directory: artifact