From 9d37489fddd09b1f3465dc141720dc9c20ece220 Mon Sep 17 00:00:00 2001
From: takeokunn <bararararatty@gmail.com>
Date: Thu, 30 Nov 2023 11:05:46 +0900
Subject: [PATCH] Fix

---
 .github/workflows/main.yml | 90 +++++++++++++++++---------------------
 script.el                  |  2 +-
 2 files changed, 41 insertions(+), 51 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index d174a9c..5139b50 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -11,30 +11,27 @@ permissions:
   id-token: write
 
 jobs:
-  ci:
-    runs-on: ubuntu-latest
-    steps:
-      - name: Checkout
-        uses: actions/checkout@v4
+  # ci:
+  #   runs-on: ubuntu-latest
+  #   steps:
+  #     - name: Checkout
+  #       uses: actions/checkout@v4
 
-      # for npm
-      - name: setup Node.js
-        uses: actions/setup-node@v4
-        with:
-          node-version: 20.10.0
-          cache: npm
-      - name: npm ci
-        run: npm ci
-      - name: Run textlint
-        run: npm run lint
-      - name: Run secretlint
-        run: npm run lint:secret
+  #     # for npm
+  #     - name: setup Node.js
+  #       uses: actions/setup-node@v4
+  #       with:
+  #         node-version: 20.10.0
+  #         cache: npm
+  #     - name: npm ci
+  #       run: npm ci
+  #     - name: Run textlint
+  #       run: npm run lint
+  #     - name: Run secretlint
+  #       run: npm run lint:secret
 
   deploy-hugo:
-    environment:
-      name: github-pages
-      url: ${{ steps.deployment.outputs.page_url }}
-    needs: ci
+    # needs: ci
     runs-on: ubuntu-latest
     steps:
       - name: Checkout
@@ -58,36 +55,29 @@ jobs:
           HUGO_ENVIRONMENT: production
           HUGO_ENV: production
         run: hugo --minify
-
-      # for GitHub Pages
-      - name: Setup GitHub Pages
-        id: pages
-        uses: actions/configure-pages@v3
-      - name: Upload artifact
-        uses: actions/upload-pages-artifact@v2
+      - name: Deploy
+        uses: peaceiris/actions-gh-pages@v3
         with:
-          path: ./public
-      - name: Deploy to GitHub Pages
-        id: deployment
-        uses: actions/deploy-pages@v2
+          github_token: ${{ secrets.GITHUB_TOKEN }}
+          publish_dir: ./public
 
-  deploy-zenn:
-    needs: ci
-    runs-on: ubuntu-latest
-    steps:
-      - name: Checkout
-        uses: actions/checkout@v4
+  # deploy-zenn:
+  #   # needs: ci
+  #   runs-on: ubuntu-latest
+  #   steps:
+  #     - name: Checkout
+  #       uses: actions/checkout@v4
 
-      # for Org to Markdown
-      - uses: purcell/setup-emacs@master
-        with:
-          version: 29.1
-      - name: Build org to markdown
-        run: emacs --batch -l script.el -f export-org-zenn-files
+  #     # for Org to Markdown
+  #     - uses: purcell/setup-emacs@master
+  #       with:
+  #         version: 29.1
+  #     - name: Build org to markdown
+  #       run: emacs --batch -l script.el -f export-org-zenn-files
 
-      - name: Deploy zenn
-        uses: peaceiris/actions-gh-pages@v3
-        with:
-          github_token: ${{ secrets.GITHUB_TOKEN }}
-          publish_dir: ./zenn
-          publish_branch: zenn
+  #     - name: Deploy zenn
+  #       uses: peaceiris/actions-gh-pages@v3
+  #       with:
+  #         github_token: ${{ secrets.GITHUB_TOKEN }}
+  #         publish_dir: ./zenn
+  #         publish_branch: zenn
diff --git a/script.el b/script.el
index f3c7181..4201fa5 100644
--- a/script.el
+++ b/script.el
@@ -4,8 +4,8 @@
 (package-refresh-contents)
 (package-initialize)
 (package-install 'ox-hugo)
-(package-install 'org-roam)
 (package-install 'ox-zenn)
+(package-install 'org-roam)
 
 (require 'ox-hugo)
 (require 'ox-zenn)