This is an automated email from the ASF dual-hosted git repository.
bsalzano pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/openserverless-site.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 94a6ee9 chore: minor fixes
94a6ee9 is described below
commit 94a6ee91ae9c2258973e23aa8895fb5a9bba80a4
Author: bruno <[email protected]>
AuthorDate: Tue Oct 29 19:49:46 2024 +0100
chore: minor fixes
Added .asf.yaml and removed workflows
---
.asf.yaml | 18 +++++++++++++++++
.github/workflows/build.yml | 47 ---------------------------------------------
2 files changed, 18 insertions(+), 47 deletions(-)
diff --git a/.asf.yaml b/.asf.yaml
new file mode 100644
index 0000000..424d197
--- /dev/null
+++ b/.asf.yaml
@@ -0,0 +1,18 @@
+# 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.
+
+publish:
+ whoami: asf-site
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
deleted file mode 100644
index d6df788..0000000
--- a/.github/workflows/build.yml
+++ /dev/null
@@ -1,47 +0,0 @@
-name: website
-
-on:
- push:
- branches:
- - main
-
-env:
- PUBLISH_DIRECTORY: public
-
-permissions:
- contents: write
-
-jobs:
- publish:
- if: github.event_name == 'push' || github.event.pull_request.merged ==
true && github.event.pull_request.base.ref == 'main'
- runs-on: ubuntu-latest
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4
- - name: Checkout Production
- if: github.ref_name == 'main'
- uses: actions/checkout@v4
- with:
- ref: asf-site
- path: ${{ env.PUBLISH_DIRECTORY }}
- #- name: Install Asciidoctor
- # run: |
- # sudo apt-get update
- # sudo apt-get install -y asciidoctor
- - name: Prepare
- working-directory: ${{ env.PUBLISH_DIRECTORY }}
- run: |
- rm -rf stylesheets
- - name: Build Hugo site
- run: |
- npm install
- npm run clean
- npm run build:production
- - name: Deploy to ASF
- working-directory: ${{ env.PUBLISH_DIRECTORY }}
- run: |
- git config --global user.name "github-actions[bot]"
- git config --global user.email
"ops+github-actions[bot]@users.noreply.github.com"
- git add .
- git commit -m "Published changes from $GITHUB_SHA"
- git push
\ No newline at end of file