Use grep -E for macOS compat
This commit is contained in:
parent
8ebbce5516
commit
c5c69731c2
|
@ -102,7 +102,7 @@ jobs:
|
||||||
ext=""
|
ext=""
|
||||||
[[ "${{ matrix.name }}" == windows-* ]] && ext=".exe"
|
[[ "${{ matrix.name }}" == windows-* ]] && ext=".exe"
|
||||||
bin="target/${{ matrix.target }}/release/watchexec${ext}"
|
bin="target/${{ matrix.target }}/release/watchexec${ext}"
|
||||||
version=$(grep -oP '[0-9.]+' <<< "${{ github.ref }}")
|
version=$(grep -oE '[0-9.]+' <<< "${{ github.ref }}")
|
||||||
dst="watchexec-${version}-${{ matrix.target }}"
|
dst="watchexec-${version}-${{ matrix.target }}"
|
||||||
mkdir "$dst"
|
mkdir "$dst"
|
||||||
strip "$bin" || true
|
strip "$bin" || true
|
||||||
|
@ -113,7 +113,7 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
version=$(grep -oP '[0-9.]+' <<< "${{ github.ref }}")
|
version=$(grep -oE '[0-9.]+' <<< "${{ github.ref }}")
|
||||||
dst="watchexec-${version}-${{ matrix.target }}"
|
dst="watchexec-${version}-${{ matrix.target }}"
|
||||||
tar cavf "$dst.tar.xz" "$dst"
|
tar cavf "$dst.tar.xz" "$dst"
|
||||||
- name: Archive (deb)
|
- name: Archive (deb)
|
||||||
|
@ -121,7 +121,7 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
version=$(grep -oP '[0-9.]+' <<< "${{ github.ref }}")
|
version=$(grep -oE '[0-9.]+' <<< "${{ github.ref }}")
|
||||||
dst="watchexec-${version}-${{ matrix.target }}"
|
dst="watchexec-${version}-${{ matrix.target }}"
|
||||||
mkdir -p "deb/$dst"
|
mkdir -p "deb/$dst"
|
||||||
cd "deb/$dst"
|
cd "deb/$dst"
|
||||||
|
@ -150,7 +150,7 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
version=$(grep -oP '[0-9.]+' <<< "${{ github.ref }}")
|
version=$(grep -oE '[0-9.]+' <<< "${{ github.ref }}")
|
||||||
dst="watchexec-${version}-${{ matrix.target }}"
|
dst="watchexec-${version}-${{ matrix.target }}"
|
||||||
7z a "$dst.zip" "$dst"
|
7z a "$dst.zip" "$dst"
|
||||||
- uses: softprops/action-gh-release@v1
|
- uses: softprops/action-gh-release@v1
|
||||||
|
|
Loading…
Reference in New Issue