mirror of
https://github.com/ajeetdsouza/zoxide.git
synced 2026-09-25 08:59:40 -04:00
Release v0.7.0
This commit is contained in:
@@ -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:
|
||||
Reference in New Issue
Block a user