Skip to content

Commit 23e9d09

Browse files
committed
Attach IDE CFN as release artifact
1 parent b8f3a3e commit 23e9d09

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/release.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ jobs:
2323
uses: actions/setup-node@v4
2424
with:
2525
node-version: 20
26+
- name: Get kubectl version
27+
run: |
28+
source hack/lib/kubectl-version.sh
29+
echo "Using kubectl ${KUBECTL_VERSION}"
30+
echo "KUBECTL_VERSION=$KUBECTL_VERSION" >> $GITHUB_ENV
31+
- uses: azure/setup-kubectl@v4
32+
with:
33+
version: "${{ env.KUBECTL_VERSION }}"
34+
id: install
2635
- name: Release Notes
2736
env:
2837
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -31,12 +40,21 @@ jobs:
3140
yarn install
3241
yarn workspace releaser run exec
3342
43+
bash hack/build-ide-cfn.sh /tmp/ide-cfn.yaml
44+
3445
MILESTONE_TITLE=$(gh api "repos/$GITHUB_REPOSITORY/milestones/$MILESTONE_NUMBER" --jq '.title')
3546
echo "MILESTONE_TITLE=$MILESTONE_TITLE" >> $GITHUB_ENV
3647
- name: Set Git config
3748
run: |
3849
git config user.name 'github-actions[bot]'
3950
git config user.email 'github-actions[bot]@users.noreply.github.com'
51+
- name: Get AWS credentials
52+
uses: aws-actions/[email protected]
53+
with:
54+
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
55+
role-duration-seconds: 900
56+
aws-region: ${{ secrets.AWS_REGION }}
57+
role-session-name: GithubActionsSession-publish
4058
- name: Update stable branch
4159
run: |
4260
git checkout stable
@@ -71,3 +89,4 @@ jobs:
7189
tag: release-${{ env.SNAPSHOT_BRANCH }}
7290
name: ${{ env.MILESTONE_TITLE }}
7391
bodyFile: /tmp/release-notes.md
92+
artifacts: "/tmp/ide-cfn.yaml"

0 commit comments

Comments
 (0)