Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,33 @@ jobs:
name: publish
path: ${{ env.PUBLISH_PATH }}

- name: Set version
id: vars
run: |
VERSION=${GITHUB_REF_NAME}
echo "version=$VERSION" >> $GITHUB_OUTPUT

- name: Create zip
run: |
cd dist
zip -r ../telemetry-server-${{ steps.vars.outputs.version }}.zip .

Comment on lines +105 to +109
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dosymep please double check that

- name: Generate checksum
run: |
sha256sum telemetry-server-${{ steps.vars.outputs.version }}.zip > checksums.txt

- name: Generate metadata
run: |
cat <<EOF > build-info.json
{
"version": "${{ steps.vars.outputs.version }}",
"commit": "${GITHUB_SHA}",
"ref": "${GITHUB_REF}",
"run_id": "${GITHUB_RUN_ID}",
"built_at": "$(date -u +"%Y-%m-%dT%H:%M:%SZ")"
}
EOF

- name: Publish Release
uses: softprops/action-gh-release@v2
env:
Expand All @@ -104,7 +131,10 @@ jobs:
draft: true
prerelease: false
generate_release_notes: true
files: ${{ env.PUBLISH_PATH }}/**
files: |
telemetry-server-${{ steps.vars.outputs.version }}.zip
checksums.txt
build-info.json

docker-publish:
needs: [ tests ]
Expand Down
Loading