mirror of
https://github.com/Xevion/spotify-quickauth.git
synced 2025-12-09 10:08:47 -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
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
fail_fast:
|
||||
description: 'Fail fast strategy'
|
||||
required: false
|
||||
default: 'true'
|
||||
push:
|
||||
tags:
|
||||
- 'v*.*.*'
|
||||
@@ -26,7 +31,8 @@ env:
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: ${{ startsWith(github.ref, 'refs/tags/') }}
|
||||
fail-fast: ${{ startsWith(github.ref, 'refs/tags/') || github.event.inputs.fail_fast == 'true' }}
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- os: ubuntu-latest
|
||||
@@ -93,10 +99,10 @@ jobs:
|
||||
RELEASE_VERSION=v${{ env.PACKAGE_VERSION }}
|
||||
ARCHIVE="spotify-player-quickauth-$RELEASE_VERSION-${{ matrix.target }}"
|
||||
|
||||
if [[ "$RUNNER_OS" == "Windows" ]]; then
|
||||
ARCHIVE="$ARCHIVE.zip"
|
||||
if [[ "$RUNNER_OS" == "Windows" ]]; then
|
||||
ARCHIVE="$ARCHIVE.tar.gz"
|
||||
cp target/${{ matrix.target }}/release/spotify-player-quickauth.exe ./
|
||||
zip -r "$ARCHIVE" ./spotify-player-quickauth.exe
|
||||
tar czf "$ARCHIVE" ./spotify-player-quickauth.exe
|
||||
else
|
||||
ARCHIVE="$ARCHIVE.tar.gz"
|
||||
cp target/${{ matrix.target }}/release/spotify-player-quickauth ./
|
||||
|
||||
Reference in New Issue
Block a user