mirror of
https://github.com/Xevion/spotify-quickauth.git
synced 2025-12-11 02:08:48 -06:00
fail fast input for dispatch, tar not zip on windows w/ bash shell
This commit is contained in:
16
.github/workflows/build.yaml
vendored
16
.github/workflows/build.yaml
vendored
@@ -4,7 +4,12 @@ permissions:
|
|||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
fail_fast:
|
||||||
|
description: 'Fail fast strategy'
|
||||||
|
required: false
|
||||||
|
default: 'true'
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*.*.*'
|
- 'v*.*.*'
|
||||||
@@ -26,7 +31,8 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: ${{ startsWith(github.ref, 'refs/tags/') }}
|
fail-fast: ${{ startsWith(github.ref, 'refs/tags/') || github.event.inputs.fail_fast == 'true' }}
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
@@ -93,10 +99,10 @@ jobs:
|
|||||||
RELEASE_VERSION=v${{ env.PACKAGE_VERSION }}
|
RELEASE_VERSION=v${{ env.PACKAGE_VERSION }}
|
||||||
ARCHIVE="spotify-player-quickauth-$RELEASE_VERSION-${{ matrix.target }}"
|
ARCHIVE="spotify-player-quickauth-$RELEASE_VERSION-${{ matrix.target }}"
|
||||||
|
|
||||||
if [[ "$RUNNER_OS" == "Windows" ]]; then
|
if [[ "$RUNNER_OS" == "Windows" ]]; then
|
||||||
ARCHIVE="$ARCHIVE.zip"
|
ARCHIVE="$ARCHIVE.tar.gz"
|
||||||
cp target/${{ matrix.target }}/release/spotify-player-quickauth.exe ./
|
cp target/${{ matrix.target }}/release/spotify-player-quickauth.exe ./
|
||||||
zip -r "$ARCHIVE" ./spotify-player-quickauth.exe
|
tar czf "$ARCHIVE" ./spotify-player-quickauth.exe
|
||||||
else
|
else
|
||||||
ARCHIVE="$ARCHIVE.tar.gz"
|
ARCHIVE="$ARCHIVE.tar.gz"
|
||||||
cp target/${{ matrix.target }}/release/spotify-player-quickauth ./
|
cp target/${{ matrix.target }}/release/spotify-player-quickauth ./
|
||||||
|
|||||||
Reference in New Issue
Block a user