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 1cafda6 commit a2008d0
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
push:
branches:
- "main"
- "yannic-tag-main"

env:
BAZELISK_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -26,19 +27,21 @@ jobs:
runs-on: ubuntu-latest
needs:
- test
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/yannic-tag-main'

steps:
- uses: actions/checkout@v4

- name: Create release
- name: Create tag
id: "tag"
env:
GIT_AUTHOR_NAME: "EngFlow"
GIT_AUTHOR_EMAIL: "[email protected]"
GIT_COMMITTER_NAME: "EngFlow"
GIT_COMMITTER_EMAIL: "[email protected]"
run: |
VERSION="v$(date -u '%Y.%m.%d-%H.%M.%S')"
echo "version=${VERSION}" >> "${GITHUB_OUTPUT}"
# 1. Download `buildozer`
curl -o "${RUNNER_TEMP}/buildozer" -L "https://github.com/bazelbuild/buildtools/releases/download/v7.3.1/buildozer-linux-amd64"
Expand All @@ -52,3 +55,18 @@ jobs:
# 3. Push release tag.
git tag "${VERSION}" "HEAD"
git push origin "${VERSION}"
- name: Create GitHub Release
uses: actions/create-release@v1
with:
tag_name: ${{ steps.tag.outputs.version }}
release_name: Release ${{ steps.tag.outputs.version }}
body: |
# EngFlow APIs ${{ steps.tag.outputs.version }}
To use this module, please add the following to `MODULE.bazel`:
```
bazel_dep(name = "engflowapis", version = "${{ steps.tag.outputs.version }}")
```
prerelease: true

0 comments on commit a2008d0

Please sign in to comment.