mirror of
https://github.com/scarf-sh/tie.git
synced 2024-11-22 10:31:56 +03:00
create and upload binaries on tags
This commit is contained in:
parent
58039e7efb
commit
ddf98dcac2
44
.github/workflows/release.yml
vendored
Normal file
44
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
name: Main
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
matrix:
|
||||||
|
os:
|
||||||
|
- ubuntu-latest
|
||||||
|
- macOS-latest
|
||||||
|
cabal:
|
||||||
|
- "3.6.2.0"
|
||||||
|
ghc:
|
||||||
|
- "9.2.3"
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Setup Haskell
|
||||||
|
uses: haskell/actions/setup@v1.2
|
||||||
|
id: setup-haskell-cabal
|
||||||
|
with:
|
||||||
|
ghc-version: ${{ matrix.ghc }}
|
||||||
|
cabal-version: ${{ matrix.cabal }}
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: cabal install exe:tie --install-method=copy --overwrite-policy=always --installdir=out
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: ./out/tie --help
|
||||||
|
|
||||||
|
- name: Prepare archive
|
||||||
|
run: tar -zcvf ./${{ matrix.os }}.tar.gz -C out tie
|
||||||
|
|
||||||
|
- name: Release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
with:
|
||||||
|
files: ./${{ matrix.os }}.tar.gz
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
dist-newstyle/
|
dist-newstyle/
|
||||||
.DS_Store
|
.DS_Store
|
||||||
out/
|
out/
|
||||||
cabal.project.local*
|
cabal.project.local*
|
||||||
|
*.tar.gz
|
||||||
|
Loading…
Reference in New Issue
Block a user