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 2020/08/22 05:54:30 UTC
[apisix-website] branch master updated: Create deploy.yml (#68)
This is an automated email from the ASF dual-hosted git repository.
juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-website.git
The following commit(s) were added to refs/heads/master by this push:
new 7fd9783 Create deploy.yml (#68)
7fd9783 is described below
commit 7fd9783b3082e94138548e55bdbb9236448b0da5
Author: 琚致远 <ju...@apache.org>
AuthorDate: Sat Aug 22 13:54:24 2020 +0800
Create deploy.yml (#68)
* Create deploy.yml
* Update deploy.yml
* Update deploy.yml
* Update deploy.yml
* Update deploy.yml
---
.github/workflows/deploy.yml | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
new file mode 100644
index 0000000..096dc2f
--- /dev/null
+++ b/.github/workflows/deploy.yml
@@ -0,0 +1,36 @@
+# This is a basic workflow to help you get started with Actions
+
+name: CI
+
+# Controls when the action will run. Triggers the workflow on push or pull request
+# events but only for the master branch
+on:
+ push:
+ branches: [ master ]
+
+# A workflow run is made up of one or more jobs that can run sequentially or in parallel
+jobs:
+ # This workflow contains a single job called "build"
+ build:
+ # The type of runner that the job will run on
+ runs-on: ubuntu-latest
+
+ # Steps represent a sequence of tasks that will be executed as part of the job
+ steps:
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
+ - uses: actions/checkout@v2
+
+ - name: Build
+ run: cd website && yarn && yarn build
+
+ - name: Copy files
+ run: cd website && cd build && cd apisix-website && cp ../../../README.md ./ && cp ../../../.asf.yaml ./
+
+ - name: GitHub Pages
+ uses: crazy-max/ghaction-github-pages@v2.0.1
+ with:
+ build_dir: website/build/apisix-website
+ target_branch: asf-site
+ keep_history: true
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}