Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/amzrk2/hugo-theme-fuji.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordsrkafuu <dsrkafuu@outlook.com>2022-02-24 19:37:02 +0300
committerdsrkafuu <dsrkafuu@outlook.com>2022-02-24 19:37:02 +0300
commit94713fb248762941d8603bfae7764cd71a4e3f56 (patch)
tree6d56e70f68b0fd0f1bbd2d2a7d05a5059d1f23f6
parent57e0f041085cb65ec2ef52167f1eb102af478200 (diff)
feat: pages action
-rw-r--r--.github/workflows/pages.yml36
1 files changed, 36 insertions, 0 deletions
diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml
new file mode 100644
index 0000000..fa8ab50
--- /dev/null
+++ b/.github/workflows/pages.yml
@@ -0,0 +1,36 @@
+name: pages
+
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+
+jobs:
+ pages:
+ name: Pages Deployment
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Setup Hugo
+ uses: peaceiris/actions-hugo@v2
+ with:
+ hugo-version: 'latest'
+
+ - name: Build
+ run: |
+ cd exampleSite
+ mkdir themes
+ ln -s ../.. themes/fuji
+ hugo
+ cd ..
+
+ - name: Deploy
+ uses: peaceiris/actions-gh-pages@v3
+ if: ${{ github.ref == 'refs/heads/main' }}
+ run: |
+ cd exampleSite
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ publish_dir: ./public