You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by li...@apache.org on 2022/09/28 05:27:44 UTC
[rocketmq] branch develop updated: Add GitHub Action Pipeline to automate release of RocketMQ Snapshots (#5118)
This is an automated email from the ASF dual-hosted git repository.
lizhanhui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git
The following commit(s) were added to refs/heads/develop by this push:
new 937e231cd Add GitHub Action Pipeline to automate release of RocketMQ Snapshots (#5118)
937e231cd is described below
commit 937e231cdf60d8231b29e3c858f4ffee3801f689
Author: Jack Tsai <ts...@outlook.com>
AuthorDate: Wed Sep 28 13:27:37 2022 +0800
Add GitHub Action Pipeline to automate release of RocketMQ Snapshots (#5118)
Co-authored-by: tsaitsung-han.tht <ts...@alibaba-inc.com>
---
.github/asf-deploy-settings.xml | 33 +++++++++++++++++++++++++++++++
.github/workflows/snapshot-automation.yml | 26 ++++++++++++++++++++++++
2 files changed, 59 insertions(+)
diff --git a/.github/asf-deploy-settings.xml b/.github/asf-deploy-settings.xml
new file mode 100644
index 000000000..fad16cfb8
--- /dev/null
+++ b/.github/asf-deploy-settings.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ 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.
+ -->
+
+<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="
+ http://maven.apache.org/SETTINGS/1.0.0
+ http://maven.apache.org/xsd/settings-1.0.0.xsd">
+
+ <servers>
+ <server>
+ <id>apache.snapshots.https</id>
+ <username>${env.NEXUS_DEPLOY_USERNAME}</username>
+ <password>${env.NEXUS_DEPLOY_PASSWORD}</password>
+ </server>
+ </servers>
+
+</settings>
\ No newline at end of file
diff --git a/.github/workflows/snapshot-automation.yml b/.github/workflows/snapshot-automation.yml
new file mode 100644
index 000000000..4691e6026
--- /dev/null
+++ b/.github/workflows/snapshot-automation.yml
@@ -0,0 +1,26 @@
+name: Snapshot Release Automation
+on:
+ schedule: # schedule the job to run at 12 a.m. daily
+ - cron: "0 0 * * *"
+
+jobs:
+ snapshot:
+ runs-on: ubuntu-latest
+ env:
+ NEXUS_DEPLOY_USERNAME: ${{ secrets.NEXUS_USER }}
+ NEXUS_DEPLOY_PASSWORD: ${{ secrets.NEXUS_PW }}
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ with:
+ ref: develop
+ persist-credentials: false
+ - name: Set up JDK
+ uses: actions/setup-java@v2
+ with:
+ java-version: 8
+ distribution: "adopt"
+ cache: "maven"
+ - name: Deploy to ASF Snapshots Repository
+ timeout-minutes: 40
+ run: mvn clean deploy -DskipTests=true --settings .github/asf-deploy-settings.xml