Skip to content

Commit b49c0d7

Browse files
authored
Merge branch 'master' into master
2 parents 8049826 + b5591c1 commit b49c0d7

File tree

65 files changed

+1942
-2024
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+1942
-2024
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
required: false
1313
default: prerelease
1414
push:
15-
branches: [master, feature/*]
15+
branches: [master, feature/*, release/*]
1616
# tags:
1717
# - v[0-9]+.[0-9]+.[0-9]+
1818

@@ -40,12 +40,16 @@ jobs:
4040
# run: echo 'TAG_NAME=prerelease' >> $GITHUB_ENV
4141
- if: github.event_name == 'workflow_dispatch'
4242
run: echo "TAG_NAME=${{ github.event.inputs.tag_name }}" >> $GITHUB_ENV
43-
- if: github.ref_name != 'master'
43+
- if: startsWith(github.ref_name, 'feature/')
4444
run: |
45-
TAG_NAME=${{ github.ref_name }}
46-
FEAT_NAME=$(echo $TAG_NAME | sed 's/feature\///')
45+
FEAT_NAME=$(echo ${{ github.ref_name }} | sed 's/feature\///')
4746
echo "FEAT_NAME=$FEAT_NAME" >> $GITHUB_ENV
4847
echo "TAG_NAME=pre-$FEAT_NAME" >> $GITHUB_ENV
48+
- if: startsWith(github.ref_name, 'release/')
49+
run: |
50+
RC_NAME=$(echo ${{ github.ref_name }} | sed 's/release\///')
51+
echo "FEAT_NAME=" >> $GITHUB_ENV
52+
echo "TAG_NAME=$RC_NAME" >> $GITHUB_ENV
4953
- if: github.ref_name == 'master'
5054
run: |
5155
echo "FEAT_NAME=" >> $GITHUB_ENV
@@ -105,10 +109,14 @@ jobs:
105109
- uses: actions/checkout@v4
106110
- uses: actions/download-artifact@v4
107111
- name: Delete existing prerelease
108-
# "prerelease" (main branch) or "pre-<feature>"
109-
if: "env.TAG_NAME == 'prerelease' || startsWith(env.TAG_NAME, 'pre-')"
112+
# "prerelease" (main branch), "pre-<feature>", or "rc-<date>"
113+
if: env.TAG_NAME == 'prerelease' || startsWith(env.TAG_NAME, 'pre-') || startsWith(env.TAG_NAME, 'rc-')
110114
run: |
111-
echo "SUBJECT=AWS IDE Extensions: ${FEAT_NAME:-${TAG_NAME}}" >> $GITHUB_ENV
115+
if [[ "$TAG_NAME" == rc-* ]]; then
116+
echo "SUBJECT=AWS IDE Extensions Release Candidate: ${TAG_NAME#rc-}" >> $GITHUB_ENV
117+
else
118+
echo "SUBJECT=AWS IDE Extensions: ${FEAT_NAME:-${TAG_NAME}}" >> $GITHUB_ENV
119+
fi
112120
gh release delete "$TAG_NAME" --cleanup-tag --yes || true
113121
# git push origin :"$TAG_NAME" || true
114122
- name: Publish Prerelease
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Setup Release Candidate
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
commitId:
7+
description: 'Commit ID to create RC from'
8+
required: true
9+
type: string
10+
11+
jobs:
12+
setup-rc:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
ref: ${{ inputs.commitId }}
20+
token: ${{ secrets.GITHUB_TOKEN }}
21+
persist-credentials: true
22+
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: '18'
27+
cache: 'npm'
28+
29+
- name: Generate Branch Name
30+
id: branch-name
31+
run: |
32+
echo "BRANCH_NAME=release/rc-$(date +%Y%m%d)" >> $GITHUB_OUTPUT
33+
34+
- name: Create RC Branch
35+
env:
36+
BRANCH_NAME: ${{ steps.branch-name.outputs.BRANCH_NAME }}
37+
run: |
38+
git config user.name "aws-toolkit-automation"
39+
git config user.email "<>"
40+
41+
# Create RC branch from specified commit
42+
git checkout -b $BRANCH_NAME
43+
44+
# Push RC branch
45+
git push origin $BRANCH_NAME

buildspec/release/00clonerepo.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

buildspec/release/10changeversion.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

buildspec/release/20buildrelease.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

buildspec/release/30closegate.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

buildspec/release/35opengate.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

buildspec/release/40pushtogithub.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

buildspec/release/50githubrelease.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

buildspec/release/60publish.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)