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 d0ad2e2 split site and cwiki-retired workflows
d0ad2e2 is described below
commit d0ad2e26b2d8a987175c4d71c088328a8875dfc7
Author: HervΓ© Boutemy <[email protected]>
AuthorDate: Sun Apr 20 16:17:01 2025 +0200
split site and cwiki-retired workflows
---
.github/workflows/{build.yml => cwiki-retired.yml} | 34 +--------------------
.github/workflows/{build.yml => website.yml} | 35 +---------------------
2 files changed, 2 insertions(+), 67 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/cwiki-retired.yml
similarity index 64%
copy from .github/workflows/build.yml
copy to .github/workflows/cwiki-retired.yml
index 4c8f838..817cc0c 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/cwiki-retired.yml
@@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
-name: Build site
+name: Prepare cwiki-retired
on:
push:
@@ -23,38 +23,6 @@ on:
pull_request:
jobs:
- website:
- runs-on: ubuntu-latest
-
- steps:
- - name: π Checkout
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 #
v3.5.3
- with:
- fetch-depth: 1
- - name: π Checkout asf-site branch with minimum depth
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 #
3.5.3
- with:
- ref: asf-site
- fetch-depth: 1
- path: asf-site
- - name: π§ Build site
- run: |
- rm -rf asf-site/output/*
- ./build.sh -Ddocs.dest=asf-site/output
- - name: π Add commit to the asf-site branch
- working-directory: asf-site
- run: |
- echo "Running git config"
- git config user.name "GitHub Actions"
- git config user.email "[email protected]"
- echo "Running git add -A"
- git add -A .
- echo "Running git commit"
- if git commit -m "Regenerated website based on ${GITHUB_SHA} commit"
- then
- git push origin asf-site
- fi
-
cwiki:
runs-on: ubuntu-latest
diff --git a/.github/workflows/build.yml b/.github/workflows/website.yml
similarity index 62%
rename from .github/workflows/build.yml
rename to .github/workflows/website.yml
index 4c8f838..d26b9f8 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/website.yml
@@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
-name: Build site
+name: Build Attic site
on:
push:
@@ -54,36 +54,3 @@ jobs:
then
git push origin asf-site
fi
-
- cwiki:
- runs-on: ubuntu-latest
-
- steps:
- - name: π Checkout
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 #
v3.5.3
- with:
- fetch-depth: 1
- - name: π Checkout cwiki-retired branch with minimum depth
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 #
3.5.3
- with:
- ref: cwiki-retired
- fetch-depth: 1
- path: cwiki-retired
- - name: π§ Prepare cwiki-retired content
- run: |
- rm -rf cwiki-retired/*
- cp cwiki_retired/* cwiki-retired
- - name: π Add commit to the cwiki-retired branch
- working-directory: cwiki-retired
- run: |
- echo "Running git config"
- git config user.name "GitHub Actions"
- git config user.email "[email protected]"
- echo "Running git add -A"
- git add -A .
- echo "Running git commit"
- if git commit -m "Regenerated cwiki-retired based on ${GITHUB_SHA}
commit"
- then
- git push origin cwiki-retired
- fi
-
\ No newline at end of file