This is an automated email from the ASF dual-hosted git repository.
janhoy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr-site.git
The following commit(s) were added to refs/heads/main by this push:
new 08f94779d Build site with github action (#99)
08f94779d is described below
commit 08f94779db69b12b72b83d2b36343ee6d179b6c4
Author: Jan Høydahl <[email protected]>
AuthorDate: Thu Jun 20 13:12:41 2024 +0200
Build site with github action (#99)
---
.asf.yaml | 4 ----
.github/workflows/build-pelican.yml | 22 ++++++++++++++++++++++
2 files changed, 22 insertions(+), 4 deletions(-)
diff --git a/.asf.yaml b/.asf.yaml
index 12335e50f..27f36d03f 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -1,7 +1,3 @@
-pelican:
- whoami: main
- target: asf-staging
-
staging:
whoami: asf-staging
diff --git a/.github/workflows/build-pelican.yml
b/.github/workflows/build-pelican.yml
new file mode 100644
index 000000000..48dc22103
--- /dev/null
+++ b/.github/workflows/build-pelican.yml
@@ -0,0 +1,22 @@
+name: Build Solr website with ASF Pelican action
+
+on:
+ push:
+ branches: [ "main", "production" ]
+ workflow_dispatch:
+
+jobs:
+ build-pelican:
+ runs-on: ubuntu-latest
+ continue-on-error: true
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v4
+ with:
+ ref: ${{ github.ref == 'refs/heads/production' && 'production' ||
'main' }}
+
+ - name: Build Pelican Site
+ uses: apache/infrastructure-actions/pelican@main
+ with:
+ destination: ${{ github.ref == 'refs/heads/production' && 'asf-site'
|| 'asf-staging' }}
+ gfm: 'false'