This is an automated email from the ASF dual-hosted git repository.
hboutemy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/attic.git
The following commit(s) were added to refs/heads/main by this push:
new 1ed05d5 Move output to subdir (#4)
1ed05d5 is described below
commit 1ed05d5b8d0f8a296e5bd71486c23f7f9e773960
Author: Sebb <[email protected]>
AuthorDate: Thu Apr 17 05:11:25 2025 +0100
Move output to subdir (#4)
* Move output to subdir
* Ignore the asf-site checkout
---
.github/workflows/build.yml | 8 ++++----
.gitignore | 2 +-
build.sh | 5 +++--
3 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index a6d6b4b..685a8f6 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -39,14 +39,14 @@ jobs:
with:
ref: asf-site
fetch-depth: 1
- path: docs
+ path: asf-site
- name: 🔧 Build site
run: |
- rm -rf docs/*
- ./build.sh
+ rm -rf asf-site/output/*
+ ./build.sh -Ddocs.dest=asf-site/output
- name: 🚀 Add commit to the asf-site
if: ${{ github.event_name == 'push' }}
- working-directory: docs
+ working-directory: asf-site
run: |
echo "Running git config"
git config user.name "GitHub Actions"
diff --git a/.gitignore b/.gitignore
index 7180b59..84e50f3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,2 @@
-docs/
+asf-site/
.svn-legacy/
diff --git a/build.sh b/build.sh
index 83bfd49..6db1319 100755
--- a/build.sh
+++ b/build.sh
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
-# Script to build the Attic site from xdocs/ sources to docs/ html output
+# Script to build the Attic site from xdocs/ sources to html output
+# default output is in docs/, override with -Ddocs.dest=path
-ant -Danakia.check.date=false
+ant -Danakia.check.date=false "$@"