@@ -90,11 +90,12 @@ jobs:
90
90
run : |
91
91
file_list=(skyline-vscode-*.vsix)
92
92
formatted_file_list=$(basename -a ${file_list[@]})
93
+ cd vsix
93
94
python3 ../scripts/create_index.py skyline-vscode -f $formatted_file_list
94
95
95
96
- name : Upload index.html to S3
96
97
run : |
97
- aws s3 cp index.html s3://centml-releases/skyline-vscode/
98
+ aws s3 cp vsix/ index.html s3://centml-releases/skyline-vscode/
98
99
99
100
publish-release :
100
101
name : Publish Release
@@ -106,6 +107,11 @@ jobs:
106
107
with :
107
108
fetch-depth : 0
108
109
110
+ - name : Set RELEASE_VERSION
111
+ run : |
112
+ RELEASE_VERSION=$(node -p "require('./skyline-vscode/package.json').version")
113
+ echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
114
+
109
115
- name : Download artifact
110
116
uses : actions/download-artifact@v3
111
117
with :
@@ -114,7 +120,7 @@ jobs:
114
120
115
121
- name : Publish a release
116
122
run : |
117
- RELEASE_NOTES="$(git log $(git describe --abbrev=0 --tags).. --merges --pretty=format:"%s %b" | cut -f 4,7- -d ' ')"
123
+ RELEASE_NOTES="$(git log $(git describe --abbrev=0 --tags --always ).. --merges --pretty=format:"%s %b" | cut -f 4,7- -d ' ')"
118
124
echo "Autogenerated Release Notes:"
119
125
echo "$RELEASE_NOTES"
120
126
RELEASE_ARTIFACTS=$(find ./dist -name "*${{ env.RELEASE_VERSION }}*" -type f | paste -s -d ' ' - )
@@ -124,4 +130,4 @@ jobs:
124
130
--title "$VERSION_TAG" \
125
131
--notes "$RELEASE_NOTES" \
126
132
--target "$GITHUB_SHA" \
127
- $RELEASE_ARTIFACTS
133
+ $RELEASE_ARTIFACTS
0 commit comments