This is an automated email from the ASF dual-hosted git repository.
franztt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/openserverless-site.git
The following commit(s) were added to refs/heads/main by this push:
new 882bfbc chore: create .asf.yaml (#40)
882bfbc is described below
commit 882bfbc6510a320d0a8135a0a7d84279478ef61e
Author: Bruno Salzano <[email protected]>
AuthorDate: Wed Oct 30 00:05:05 2024 +0100
chore: create .asf.yaml (#40)
Updated the action to copy the .asf.yaml file inside the publish directory
---
.github/.asf.prod.yaml | 18 ++++++++++++++++++
.github/workflows/build.yml | 2 ++
2 files changed, 20 insertions(+)
diff --git a/.github/.asf.prod.yaml b/.github/.asf.prod.yaml
new file mode 100644
index 0000000..424d197
--- /dev/null
+++ b/.github/.asf.prod.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
index 2c1c122..511662a 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -32,6 +32,8 @@ jobs:
npm install
npm run clean
npm run build:production
+ - name: Copy .asf.yaml to publish directory
+ run: cp .github/.asf.prod.yaml ${{ env.PUBLISH_DIRECTORY }}/.asf.yaml
- name: Deploy to ASF
working-directory: ${{ env.PUBLISH_DIRECTORY }}
run: |