Add Release Notes for 1.10.0 (#156) #220
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy ASF site | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: 0.110.0 | |
extended: true | |
- name: Build | |
run: hugo --minify | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: asf-site | |
publish_dir: content | |
destination_dir: content | |
force_orphan: true | |
- run: | | |
git config --global user.name "GitHub Actions" | |
git config --global user.email "[email protected]" | |
git fetch --all | |
git checkout asf-site | |
echo 'publish:' >> .asf.yaml | |
echo ' whoami: asf-site' >> .asf.yaml | |
git add .asf.yaml | |
git commit -m '.asf.yaml' | |
git push origin asf-site |