Skip to content

Add random bot. Fix bug where cards run out. #16

Add random bot. Fix bug where cards run out.

Add random bot. Fix bug where cards run out. #16

Workflow file for this run

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/execute@v0.9.7
- 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 }}