Skip to content

Commit

Permalink
Merge branch 'main' into feat/labels_option
Browse files Browse the repository at this point in the history
  • Loading branch information
puria authored Jun 18, 2024
2 parents 7216630 + 8ec2f32 commit 6c563e6
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,31 +37,3 @@ jobs:
- name: Build
run: go build -o tgcom ./cmd/tgcom

- name: Semantic Versioning
id: semver
run: |
VERSION=$(git describe --tags --abbrev=0)
if [ -z "$VERSION" ]; then
VERSION="v0.1.0"
else
VERSION=$(echo "$VERSION" | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g')
fi
echo "New version: $VERSION"
echo "::set-output name=version::$VERSION"
release:
needs: build
name: Release
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
runs-on: ubuntu-latest

steps:
- name: Create release
uses: actions/create-release@v1
with:
tag_name: ${{ needs.build.outputs.semver }}
release_name: ${{ needs.build.outputs.semver }}
body: |
Release ${{ needs.build.outputs.semver }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6c563e6

Please sign in to comment.