diff --git a/.github/workflows/build-vsix.yaml b/.github/workflows/build-vsix.yaml index 8a1259c..7948b71 100644 --- a/.github/workflows/build-vsix.yaml +++ b/.github/workflows/build-vsix.yaml @@ -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 @@ -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: @@ -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 ' ' - ) @@ -124,4 +130,4 @@ jobs: --title "$VERSION_TAG" \ --notes "$RELEASE_NOTES" \ --target "$GITHUB_SHA" \ - $RELEASE_ARTIFACTS \ No newline at end of file + $RELEASE_ARTIFACTS