Add random bot. Fix bug where cards run out. #16
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: Release with GoReleaser | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # Fetch all history for all branches and tags | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.22.3' | |
- name: Determine Version | |
uses: gittools/actions/gitversion/[email protected] | |
- name: Display SemVer | |
run: | | |
echo "SemVer: $GITVERSION_SEMVER" && echo "$version" && echo "$major.$minor.$patch" | |
- name: Create git tag | |
run: | | |
git tag $GITVERSION_SEMVER | |
- name: Push git tag | |
run: git push origin $GITVERSION_SEMVER | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v6 | |
with: | |
# either 'goreleaser' (default) or 'goreleaser-pro' | |
distribution: goreleaser | |
version: "latest" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |