emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/hyperbole 94a3d0c3d0 2/2: Use Github Pages for the manu


From: ELPA Syncer
Subject: [elpa] externals/hyperbole 94a3d0c3d0 2/2: Use Github Pages for the manual (#617)
Date: Mon, 25 Nov 2024 06:58:13 -0500 (EST)

branch: externals/hyperbole
commit 94a3d0c3d0a2cad3cefb2444972a2688217380ee
Author: Mats Lidell <mats.lidell@lidells.se>
Commit: GitHub <noreply@github.com>

    Use Github Pages for the manual (#617)
---
 .github/workflows/static.yaml | 46 +++++++++++++++++++++++++++++++++++++++++++
 ChangeLog                     |  5 +++++
 2 files changed, 51 insertions(+)

diff --git a/.github/workflows/static.yaml b/.github/workflows/static.yaml
new file mode 100644
index 0000000000..1139d0ae63
--- /dev/null
+++ b/.github/workflows/static.yaml
@@ -0,0 +1,46 @@
+# Simple workflow for deploying static content to GitHub Pages
+name: Deploy static content to Pages
+
+on:
+  # Runs on pushes targeting the default branch
+  push:
+    branches: ["master"]
+
+  # Allows you to run this workflow manually from the Actions tab
+  workflow_dispatch:
+
+# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
+permissions:
+  contents: read
+  pages: write
+  id-token: write
+
+# Allow only one concurrent deployment, skipping runs queued between the run 
in-progress and latest queued.
+# However, do NOT cancel in-progress runs as we want to allow these production 
deployments to complete.
+concurrency:
+  group: "pages"
+  cancel-in-progress: false
+
+jobs:
+  # Single deploy job since we're just deploying
+  deploy:
+    environment:
+      name: github-pages
+      url: ${{ steps.deployment.outputs.page_url }}
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v4
+      - name: Create index.html for the manual
+        run: |
+          ln -s hyperbole.html man/index.html
+      - name: Setup Pages
+        uses: actions/configure-pages@v5
+      - name: Upload artifact
+        uses: actions/upload-pages-artifact@v3
+        with:
+          # Upload entire repository
+          path: 'man'
+      - name: Deploy to GitHub Pages
+        id: deployment
+        uses: actions/deploy-pages@v4
diff --git a/ChangeLog b/ChangeLog
index f8c01d7e72..6e23611a81 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-11-25  Mats Lidell  <matsl@gnu.org>
+
+* .github/workflows/static.yaml: Static workflow for publishing the manual
+    to a static site using GitHub Pages.
+
 2024-11-24  Mats Lidell  <matsl@gnu.org>
 
 * Makefile (website-local-devel): Update the website files locally for



reply via email to

[Prev in Thread] Current Thread [Next in Thread]