OSDN Git Service

[add] : Added action
authorhayao <hayao@fascode.net>
Sat, 23 Oct 2021 08:53:28 +0000 (17:53 +0900)
committerhayao <hayao@fascode.net>
Sat, 23 Oct 2021 08:53:28 +0000 (17:53 +0900)
.github/workflows/deploy-gh-pages.yaml [new file with mode: 0644]

diff --git a/.github/workflows/deploy-gh-pages.yaml b/.github/workflows/deploy-gh-pages.yaml
new file mode 100644 (file)
index 0000000..c7189b7
--- /dev/null
@@ -0,0 +1,23 @@
+name: Deploy Github Pages
+
+on: 
+  push:
+    branches:
+      - gh-pages
+
+jobs:
+  gh-pages:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2
+        with:
+          submodules: true
+          fetch-depth: 0 
+
+      - name: Deploy for GitHub Pages
+        uses: peaceiris/actions-gh-pages@v3
+        with:
+          github_token: ${{ secrets.GITHUB_TOKEN }}
+          publish_branch: gh-pages
+          publish_dir: ./