Skip to content

Commit

Permalink
feat: add publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
Psykka committed Mar 22, 2024
1 parent 158815e commit 343d89c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: publish

on:
push:
tags:
- "*"

jobs:
build:
strategy:
matrix:
arch: [amd64, arm64]
platform: [linux, darwin, windows]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Build
run: GOOS=${{ matrix.platform }} GOARCH=${{ matrix.arch }} go build -ldflags="-X main.version=$(git describe --tags --abbrev=0)" -o migrash-${{ matrix.platform }}-${{ matrix.arch }}
- name: Archive
uses: actions/upload-artifact@v4
with:
name: migrash-${{ matrix.platform }}-${{ matrix.arch }}
path: migrash-${{ matrix.platform }}-${{ matrix.arch }}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Migrash a language-agnostic simple SQL migration tool. It is designed to be simp

## List of supported databases

- [ ] PostgreSQL
- [ ] MySQL/MariaDB
- [ ] SQLite
- PostgreSQL
- MySQL/MariaDB
- SQLite

## Usage

Expand Down

0 comments on commit 343d89c

Please sign in to comment.