Skip to content

Commit 343d89c

Browse files
committed
feat: add publish script
1 parent 158815e commit 343d89c

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

.github/workflows/publish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: publish
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
jobs:
9+
build:
10+
strategy:
11+
matrix:
12+
arch: [amd64, arm64]
13+
platform: [linux, darwin, windows]
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Set up Go
18+
uses: actions/setup-go@v5
19+
with:
20+
go-version: 1.22
21+
- name: Build
22+
run: GOOS=${{ matrix.platform }} GOARCH=${{ matrix.arch }} go build -ldflags="-X main.version=$(git describe --tags --abbrev=0)" -o migrash-${{ matrix.platform }}-${{ matrix.arch }}
23+
- name: Archive
24+
uses: actions/upload-artifact@v4
25+
with:
26+
name: migrash-${{ matrix.platform }}-${{ matrix.arch }}
27+
path: migrash-${{ matrix.platform }}-${{ matrix.arch }}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Migrash a language-agnostic simple SQL migration tool. It is designed to be simp
44

55
## List of supported databases
66

7-
- [ ] PostgreSQL
8-
- [ ] MySQL/MariaDB
9-
- [ ] SQLite
7+
- PostgreSQL
8+
- MySQL/MariaDB
9+
- SQLite
1010

1111
## Usage
1212

0 commit comments

Comments
 (0)