mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-12 23:45:18 +00:00
cd: fix windows build error due to nightly version format
This commit is contained in:
parent
937a706ac9
commit
7ad67fa3fa
5
.github/workflows/spotube-release-binary.yml
vendored
5
.github/workflows/spotube-release-binary.yml
vendored
@ -42,9 +42,10 @@ jobs:
|
||||
if: ${{ inputs.channel == 'nightly' }}
|
||||
run: |
|
||||
choco install sed make yq -y
|
||||
yq -i '.version |= sub("\+\d+", "+${{ inputs.channel }}.")' pubspec.yaml
|
||||
yq -i '.version |= sub("\+\d+", "-${{ inputs.channel }}+")' pubspec.yaml
|
||||
yq -i '.version += strenv(GITHUB_RUN_NUMBER)' pubspec.yaml
|
||||
"BUILD_VERSION=${{ inputs.version }}+${{ inputs.channel }}.${{ github.run_number }}" >> $env:GITHUB_ENV
|
||||
"BUILD_VERSION=${{ inputs.version }}-${{ inputs.channel }}+${{ github.run_number }}" >> $env:GITHUB_ENV
|
||||
shell: bash
|
||||
|
||||
- name: BUILD_VERSION Env (stable)
|
||||
if: ${{ inputs.channel == 'stable' }}
|
||||
|
Loading…
Reference in New Issue
Block a user