Skip to content

Commit f2ffe04

Browse files
authored
Release v0.1.0 - Fix release runner (#41)
* Bump version to v0.1.0 * Update build-vsix.yaml * Update release process
1 parent e04d366 commit f2ffe04

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/build-vsix.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,12 @@ jobs:
9090
run: |
9191
file_list=(skyline-vscode-*.vsix)
9292
formatted_file_list=$(basename -a ${file_list[@]})
93+
cd vsix
9394
python3 ../scripts/create_index.py skyline-vscode -f $formatted_file_list
9495
9596
- name: Upload index.html to S3
9697
run: |
97-
aws s3 cp index.html s3://centml-releases/skyline-vscode/
98+
aws s3 cp vsix/index.html s3://centml-releases/skyline-vscode/
9899
99100
publish-release:
100101
name: Publish Release
@@ -106,6 +107,11 @@ jobs:
106107
with:
107108
fetch-depth: 0
108109

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+
109115
- name: Download artifact
110116
uses: actions/download-artifact@v3
111117
with:
@@ -114,7 +120,7 @@ jobs:
114120

115121
- name: Publish a release
116122
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 ' ')"
118124
echo "Autogenerated Release Notes:"
119125
echo "$RELEASE_NOTES"
120126
RELEASE_ARTIFACTS=$(find ./dist -name "*${{ env.RELEASE_VERSION }}*" -type f | paste -s -d ' ' - )
@@ -124,4 +130,4 @@ jobs:
124130
--title "$VERSION_TAG" \
125131
--notes "$RELEASE_NOTES" \
126132
--target "$GITHUB_SHA" \
127-
$RELEASE_ARTIFACTS
133+
$RELEASE_ARTIFACTS

0 commit comments

Comments
 (0)