diff options
author | peaceiris <30958501+peaceiris@users.noreply.github.com> | 2022-04-27 23:22:31 +0300 |
---|---|---|
committer | peaceiris <30958501+peaceiris@users.noreply.github.com> | 2022-04-27 23:22:31 +0300 |
commit | 2d4e48b7d9ef25b4a8979bafb496b5c4f1f999f5 (patch) | |
tree | a99549af437b292ad633335883318d753077d4d5 /README.md | |
parent | 720dbad3ae0a917709fd283a2833c00bbe1ef6ce (diff) |
docs: delete old workflow example
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 40 |
1 files changed, 1 insertions, 39 deletions
@@ -30,6 +30,7 @@ Hugo IRIS Theme - [Getting Started](#getting-started) - [Install Hugo](#install-hugo) - [Install Go](#install-go) + - [Install Node.js and npm](#install-nodejs-and-npm) - [Initialize New Hugo Project](#initialize-new-hugo-project) - [Create a Post Page](#create-a-post-page) - [Create a Slide Page](#create-a-slide-page) @@ -196,45 +197,6 @@ The following actions are useful to deploy your site to GitHub Pages using GitHu - [peaceiris/actions-hugo: GitHub Actions for Hugo](https://github.com/peaceiris/actions-hugo) - [peaceiris/actions-gh-pages: GitHub Actions for GitHub Pages](https://github.com/peaceiris/actions-gh-pages) -Here is an example workflow `.github/workflows/gh-pages.yml` to deploy your site to `gh-pages` branch at a project repository. -For the first deployment, we have to do this operation: [First Deployment with `GITHUB_TOKEN` - peaceiris/actions-gh-pages](https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-first-deployment-with-github_token) - -```yaml -name: Deploy to GitHub Pages - -on: - push: - branches: - - main - -jobs: - deploy: - runs-on: ubuntu-18.04 - steps: - - uses: actions/checkout@v2 - with: - submodules: true # Fetch Hugo themes - fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod - - - name: Setup Hugo - uses: peaceiris/actions-hugo@v2 - with: - hugo-version: "0.97.3" - extended: true - - - name: Fetch data - run: | - export GH_USER_ID="peaceiris" - bash ./scripts/fetch_data.sh "${GH_USER_ID}" > "./data/github/${GH_USER_ID}.json" - - - run: hugo --minify - - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} -``` - <div align="right"><a href="#table-of-contents">Back to TOC ☝️</a></div> |