Workflows for a 3.3.x branch

This commit is contained in:
Janne Valkealahti
2024-06-25 15:18:41 +01:00
parent a54eb09b63
commit ac6619dba9
8 changed files with 7 additions and 102 deletions

View File

@@ -1,22 +0,0 @@
name: Central Sync Close
on:
workflow_dispatch:
inputs:
stagedRepositoryId:
description: "Staged repository id"
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
# Request release promotion repo
- uses: spring-io/nexus-sync-action@main
with:
username: ${{ secrets.OSSRH_S01_TOKEN_USERNAME }}
password: ${{ secrets.OSSRH_S01_TOKEN_PASSWORD }}
staging-profile-name: ${{ secrets.OSSRH_STAGING_PROFILE_NAME }}
staging-repo-id: ${{ github.event.inputs.stagedRepositoryId }}
close: true

View File

@@ -1,23 +0,0 @@
name: Central Sync Release
on:
workflow_dispatch:
inputs:
stagedRepositoryId:
description: "Staged repository id"
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
# Request release promotion repo
- uses: spring-io/nexus-sync-action@main
with:
url: ${{ secrets.OSSRH_URL }}
username: ${{ secrets.OSSRH_S01_TOKEN_USERNAME }}
password: ${{ secrets.OSSRH_S01_TOKEN_PASSWORD }}
staging-profile-name: ${{ secrets.OSSRH_STAGING_PROFILE_NAME }}
staging-repo-id: ${{ github.event.inputs.stagedRepositoryId }}
release: true

View File

@@ -58,7 +58,7 @@ jobs:
--server-id-deploy repo.spring.io \
--repo-resolve snapshot \
--repo-deploy snapshot
echo JFROG_CLI_BUILD_NAME=spring-shell-main >> $GITHUB_ENV
echo JFROG_CLI_BUILD_NAME=spring-shell-33x >> $GITHUB_ENV
echo JFROG_CLI_BUILD_NUMBER=$GITHUB_RUN_NUMBER >> $GITHUB_ENV
- name: Build and Publish
env:

View File

@@ -1,23 +0,0 @@
name: Labels Manage
on:
push:
branches:
- 'main'
paths:
- '.github/labels-manage.yml'
- '.github/workflows/label-manage.yml'
workflow_dispatch:
jobs:
labeler:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Mangle Labels
uses: crazy-max/ghaction-github-labeler@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
yaml-file: .github/labels-manage.yml
dry-run: false
skip-delete: true

View File

@@ -18,5 +18,5 @@ jobs:
- name: Commit Next Dev Changes
uses: jvalkeal/build-zoo-handler@v0.0.4
with:
commit-changes-branch: main
commit-changes-branch: 3.3.x
commit-changes-message: Next development version

View File

@@ -33,7 +33,7 @@ jobs:
--server-id-deploy repo.spring.io \
--repo-resolve release \
--repo-deploy libs-staging-local
echo JFROG_CLI_BUILD_NAME=spring-shell-main-release >> $GITHUB_ENV
echo JFROG_CLI_BUILD_NAME=spring-shell-33x-release >> $GITHUB_ENV
echo JFROG_CLI_BUILD_NUMBER=$GITHUB_RUN_NUMBER >> $GITHUB_ENV
- name: Configure Release Version
run: |
@@ -87,7 +87,7 @@ jobs:
JF_ENV_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
- name: Configure JFrog Cli
run: |
echo JFROG_CLI_BUILD_NAME=spring-shell-main-release >> $GITHUB_ENV
echo JFROG_CLI_BUILD_NAME=spring-shell-33x-release >> $GITHUB_ENV
echo JFROG_CLI_BUILD_NUMBER=$GITHUB_RUN_NUMBER >> $GITHUB_ENV
- name: Promote Build
run: |
@@ -163,7 +163,7 @@ jobs:
JF_ENV_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
- name: Configure JFrog Cli
run: |
echo JFROG_CLI_BUILD_NAME=spring-shell-main-release >> $GITHUB_ENV
echo JFROG_CLI_BUILD_NAME=spring-shell-33x-release >> $GITHUB_ENV
echo JFROG_CLI_BUILD_NUMBER=$GITHUB_RUN_NUMBER >> $GITHUB_ENV
- name: Download Release Files
run: |

View File

@@ -36,7 +36,7 @@ jobs:
--server-id-deploy repo.spring.io \
--repo-resolve milestone \
--repo-deploy libs-staging-local
echo JFROG_CLI_BUILD_NAME=spring-shell-main-milestone >> $GITHUB_ENV
echo JFROG_CLI_BUILD_NAME=spring-shell-33x-milestone >> $GITHUB_ENV
echo JFROG_CLI_BUILD_NUMBER=$GITHUB_RUN_NUMBER >> $GITHUB_ENV
- name: Configure Milestone Version
run: |
@@ -91,7 +91,7 @@ jobs:
JF_ENV_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
- name: Configure JFrog Cli
run: |
echo JFROG_CLI_BUILD_NAME=spring-shell-main-milestone >> $GITHUB_ENV
echo JFROG_CLI_BUILD_NAME=spring-shell-33x-milestone >> $GITHUB_ENV
echo JFROG_CLI_BUILD_NUMBER=$GITHUB_RUN_NUMBER >> $GITHUB_ENV
- name: Promote Build
run: |

View File

@@ -1,27 +0,0 @@
name: Schedule e2e
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 1,3,5'
permissions:
actions: write
jobs:
dispatch_e2e:
name: Dispatch e2e
if: github.repository_owner == 'spring-projects'
strategy:
matrix:
branch: [ main, 3.2.x, 3.1.x ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Dispatch
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: gh workflow run e2e.yml -r ${{ matrix.branch }}