Skip to content

Commit

Permalink
Release v0.1.0 - Fix release runner (#41)
Browse files Browse the repository at this point in the history
* Bump version to v0.1.0

* Update build-vsix.yaml

* Update release process
  • Loading branch information
michaelshin authored Feb 15, 2023
1 parent e04d366 commit f2ffe04
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build-vsix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,12 @@ jobs:
run: |
file_list=(skyline-vscode-*.vsix)
formatted_file_list=$(basename -a ${file_list[@]})
cd vsix
python3 ../scripts/create_index.py skyline-vscode -f $formatted_file_list
- name: Upload index.html to S3
run: |
aws s3 cp index.html s3://centml-releases/skyline-vscode/
aws s3 cp vsix/index.html s3://centml-releases/skyline-vscode/
publish-release:
name: Publish Release
Expand All @@ -106,6 +107,11 @@ jobs:
with:
fetch-depth: 0

- name: Set RELEASE_VERSION
run: |
RELEASE_VERSION=$(node -p "require('./skyline-vscode/package.json').version")
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
- name: Download artifact
uses: actions/download-artifact@v3
with:
Expand All @@ -114,7 +120,7 @@ jobs:

- name: Publish a release
run: |
RELEASE_NOTES="$(git log $(git describe --abbrev=0 --tags).. --merges --pretty=format:"%s %b" | cut -f 4,7- -d ' ')"
RELEASE_NOTES="$(git log $(git describe --abbrev=0 --tags --always).. --merges --pretty=format:"%s %b" | cut -f 4,7- -d ' ')"
echo "Autogenerated Release Notes:"
echo "$RELEASE_NOTES"
RELEASE_ARTIFACTS=$(find ./dist -name "*${{ env.RELEASE_VERSION }}*" -type f | paste -s -d ' ' - )
Expand All @@ -124,4 +130,4 @@ jobs:
--title "$VERSION_TAG" \
--notes "$RELEASE_NOTES" \
--target "$GITHUB_SHA" \
$RELEASE_ARTIFACTS
$RELEASE_ARTIFACTS

0 comments on commit f2ffe04

Please sign in to comment.