Release v0.7.0

This commit is contained in:
Ajeet D'Souza
2021-05-02 06:03:51 +05:30
parent fec064a1ef
commit a285b4e07d
8 changed files with 41 additions and 214 deletions
+2 -2
View File
@@ -1,11 +1,11 @@
name: ci
on:
push:
branches:
- main
branches: [main]
pull_request:
jobs:
ci:
name: ci-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
@@ -1,12 +1,10 @@
name: build
name: release
on:
push:
branches:
- main
pull_request:
tags: ["v*"]
jobs:
build:
name: build
name: build-${{ matrix.target }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
@@ -61,10 +59,10 @@ jobs:
tmpdir="zoxide-${{ matrix.target }}"
mkdir "$tmpdir/"
cp -r {man,CHANGELOG.md,LICENSE,README.md} "$tmpdir/"
if [ "${{ matrix.target }}" = *"windows"* ]; then
if [[ "${{ matrix.target }}" = *"windows"* ]]; then
asset="$tmpdir.zip"
cp "target/${{ matrix.target }}/release/zoxide.exe" "$tmpdir/"
7z a -mm=Deflate -mfb=258 -mpass=15 -r "$asset" "$tmpdir/"
7z a -mm=Deflate -mfb=258 -mpass=15 -r "$asset" "./$tmpdir/*"
else
asset="$tmpdir.tar.gz"
cp "target/${{ matrix.target }}/release/zoxide" "$tmpdir/"
@@ -77,7 +75,6 @@ jobs:
name: ${{ env.ASSET }}
path: ${{ env.ASSET }}
release:
if: ${{ startsWith(github.ref, 'refs/tags/') }}
runs-on: ubuntu-latest
needs: [build]
steps: