This is an automated email from the ASF dual-hosted git repository.
rzo1 pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/incubator-stormcrawler-site.git
The following commit(s) were added to refs/heads/main by this push:
new 196461b Contributes to #17 by adding a manually triggerable action to
publish to asf-site
196461b is described below
commit 196461beffbbe087f0a9a65733e0b8dd84630899
Author: Richard Zowalla <[email protected]>
AuthorDate: Thu Apr 25 09:56:12 2024 +0200
Contributes to #17 by adding a manually triggerable action to publish to
asf-site
---
.github/workflows/publish.yml | 64 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
new file mode 100644
index 0000000..6c4b57d
--- /dev/null
+++ b/.github/workflows/publish.yml
@@ -0,0 +1,64 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# This action will build and publish branch to
+# https://shiro.apache.org/
+name: Publish
+
+on:
+ # Allows you to run this workflow manually from the Actions tab
+ workflow_dispatch:
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ - name: Setup Ruby
+ uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf #
v1.146.0
+ with:
+ ruby-version: '3.1' # Not needed with a .ruby-version file
+ bundler-cache: true # runs 'bundle install' and caches installed
gems automatically
+ cache-version: 0 # Increment this number if you need to re-download
cached gems
+ - name: Build with Jekyll
+ # Outputs to the './_site' directory by default
+ run: bundle exec jekyll build
+ env:
+ JEKYLL_ENV: production
+ - name: 'Checkout asf-site'
+ uses: actions/checkout@v4
+ with:
+ repository: 'apache/stormcrawler-site'
+ ref: 'asf-site'
+ path: 'asf-site'
+
+ - name: 'Copy build to site repo'
+ run: |
+ rsync -avP --delete --exclude .git --exclude docker-compose.yml
--exclude README.md _site/. ./asf-site
+ shell: bash
+
+ - name: 'commit site'
+ working-directory: ./asf-site
+ run: |
+ git config user.name "GitHub Actions Bot"
+ git config user.email "<>"
+ git add .
+ git commit -m "publishing $(date -Is)"
+ git push
+ shell: bash
\ No newline at end of file