Add auto-deploy back (#192)
diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml
index dea734b..e62dcce 100644
--- a/.github/workflows/deploy.yaml
+++ b/.github/workflows/deploy.yaml
@@ -41,4 +41,10 @@
- name: Build
run: hugo
-
+ - name: Deploy
+ uses: peaceiris/actions-gh-pages@v3
+ if: github.event_name == 'push' && github.ref == 'refs/heads/master'
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ publish_dir: ./public
+ publish_branch: asf-site
diff --git a/README.md b/README.md
index b738cdf..a2a77e0 100755
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@
1. Install hugo
1. Pull this repo into your local environment, and run `hugo server` at the root folder, you can see the site preview from http://localhost:1313
-1. To generate the static website, run `hugo`. According to ASF policy, the deployment has to be manually done by a committer. Use the generated `public` folder to update the `asf-site` branch, and push the updates to the upstream.
+1. To generate the static website, run `hugo`.
## Contributing