Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannic committed Oct 30, 2024
1 parent 7e0455a commit 14914d2
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,13 @@ jobs:
# 3. Push release tag.
git tag "${VERSION}" "HEAD"
git push origin "${VERSION}"
# 4. Create release tarball
git archive -o "${RUNNER_TEMP}/archive.tar.gz" "${VERSION}"
echo "tarball-path=${RUNNER_TEMP}/archive.tar.gz" >> "${GITHUB_OUTPUT}"
- name: Create GitHub Release
id: "create-release"
uses: actions/create-release@v1
with:
tag_name: ${{ steps.tag.outputs.version }}
Expand All @@ -66,7 +71,16 @@ jobs:
To use this module, please add the following to `MODULE.bazel`:
```
```starlark
bazel_dep(name = "engflowapis", version = "${{ steps.tag.outputs.version }}")
```
prerelease: true

- name: Upload Tarball
id: upload-release-asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: ${{ steps.create-release.outputs.tarball-path }}
asset_name: engflowapis-${{ steps.tag.outputs.version }}.tar.gz
asset_content_type: "application/gzip"

0 comments on commit 14914d2

Please sign in to comment.