fix: handle corrupted database file properly #8
Workflow file for this run
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: Build and Release | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
build-and-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set Up | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.22 | |
- name: Build Linux | |
run: go build -o bin/tt | |
id: build-linux | |
- name: Build Windows | |
run: GOOS=windows GOARCH=amd64 go build -o bin/tt.exe | |
id: build-windows | |
- name: Prepare Release | |
run: | | |
mkdir -p dist | |
zip -j dist/tt-linux bin/tt | |
zip -j dist/tt-windows bin/tt.exe | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
id: create_release | |
with: | |
draft: true | |
prerelease: false | |
tag_name: ${{ github.ref_name }} | |
files: | | |
dist/tt-linux.zip | |
dist/tt-windows.zip | |
env: | |
GITHUB_TOKEN: ${{ secrets.MY_PAT }} |