mirror of
https://github.com/apache/rocketmq.git
synced 2026-08-30 18:10:44 +08:00
Add GitHub Action Pipeline to automate release of RocketMQ Snapshots (#5118)
Co-authored-by: tsaitsung-han.tht <tsaitsung-han.tht@alibaba-inc.com>
This commit is contained in:
@@ -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>
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user