add go modules, some cleanup #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
name: Build and Release | |
runs-on: [ubuntu-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Release Version | |
id: version | |
run: | | |
export RELEASE_VERSION=v0.0.${{ github.run_number }} | |
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV | |
echo "release_version=$RELEASE_VERSION" >> $GITHUB_OUTPUT | |
- name: create tag | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git tag -a $RELEASE_VERSION -m $RELEASE_VERSION | |
git push origin $RELEASE_VERSION | |