23
23
uses : actions/setup-node@v4
24
24
with :
25
25
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
26
35
- name : Release Notes
27
36
env :
28
37
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -31,12 +40,21 @@ jobs:
31
40
yarn install
32
41
yarn workspace releaser run exec
33
42
43
+ bash hack/build-ide-cfn.sh /tmp/ide-cfn.yaml
44
+
34
45
MILESTONE_TITLE=$(gh api "repos/$GITHUB_REPOSITORY/milestones/$MILESTONE_NUMBER" --jq '.title')
35
46
echo "MILESTONE_TITLE=$MILESTONE_TITLE" >> $GITHUB_ENV
36
47
- name : Set Git config
37
48
run : |
38
49
git config user.name 'github-actions[bot]'
39
50
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
40
58
- name : Update stable branch
41
59
run : |
42
60
git checkout stable
71
89
tag : release-${{ env.SNAPSHOT_BRANCH }}
72
90
name : ${{ env.MILESTONE_TITLE }}
73
91
bodyFile : /tmp/release-notes.md
92
+ artifacts : " /tmp/ide-cfn.yaml"
0 commit comments