minor: correct comments #71
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
# .github/workflows/ci.yml | |
name: ci | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Clone gohugoio/hugoBasicExample repository' | |
run: | | |
git clone https://github.com/gohugoio/hugoBasicExample.git | |
cd hugoBasicExample | |
mv content/post content/posts | |
sed -i 's/posts/post/g' content/posts/_index.md | |
sed -i 's/{{< twitter_simple \([0-9]*\) >}}/{{< twitter_simple user="DesignReviewed" id="\1" >}}/' content/posts/rich-content.md | |
mkdir content/about && mv content/about.md content/about/_index.md | |
mkdir -p themes/meme | |
- name: 'Check out MemE into themes/meme folder' | |
uses: actions/checkout@v3 | |
with: | |
path: hugoBasicExample/themes/meme | |
- name: 'Setup MemE' | |
run: | | |
cd hugoBasicExample | |
rm -rf config* | |
cp themes/meme/exampleSite/config.toml . | |
- name: 'Install Hugo' | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: latest | |
extended: true | |
- name: 'Build site' | |
run: | | |
cd hugoBasicExample | |
hugo --gc --minify --cleanDestinationDir --baseURL="https://io-oi.me/hugo-theme-meme/" | |
- name: 'Deploy to GitHub Pages' | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: hugoBasicExample/public | |
force_orphan: true |