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/incubator-apisix-website.git
The following commit(s) were added to refs/heads/master by this push:
new 04c6f7c Add GitHub Actions to auto-deploy (#39)
04c6f7c is described below
commit 04c6f7ceb8db396199b207a75d846a7012b0fd22
Author: Rapiz <[email protected]>
AuthorDate: Mon May 25 20:20:37 2020 +0800
Add GitHub Actions to auto-deploy (#39)
---
.github/workflows/build.yml | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..cca4435
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,39 @@
+# 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 ]
+ pull_request:
+ 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: Hugo setup
+ uses: peaceiris/[email protected]
+
+ - name: Build
+ run: hugo
+
+ - name: Copy files
+ run: cd public && cp ../README.md ./ && cp ../.asf.yaml ./
+
+ - name: GitHub Pages
+ uses: crazy-max/[email protected]
+ with:
+ build_dir: public
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}