This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-site.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new a24583a  Initial stab at site build script
a24583a is described below

commit a24583a57150e54ef4e2b5b3624c1939f4e7fcb9
Author: Sebb <s...@apache.org>
AuthorDate: Fri May 10 22:45:08 2024 +0100

    Initial stab at site build script
---
 .github/workflows/build-site.yml | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/.github/workflows/build-site.yml b/.github/workflows/build-site.yml
new file mode 100644
index 0000000..ee17a04
--- /dev/null
+++ b/.github/workflows/build-site.yml
@@ -0,0 +1,28 @@
+name: Build site
+
+on:
+  workflow_dispatch:
+  push:
+    paths:
+    - 'source/**/*'
+
+permissions:
+  contents: write
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v4
+    - name: Installs
+      run: |
+        sudo pip3 install markdown
+    - name: Build site
+      run: |
+        cd source
+        python3 generate.py
+        cd ..
+        git status
+        git acm "Commit build products"
+      # env: # for gh
+      #   GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Reply via email to