Skip to content

Commit

Permalink
Fix upload logic in CI workflow to ensure espeak-ng data is uploaded …
Browse files Browse the repository at this point in the history
…correctly to releases
  • Loading branch information
thewh1teagle committed Jan 5, 2025
1 parent ead7862 commit aba06a8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,14 @@ jobs:
cmake --install build
mv _espeak_ng_data/share/espeak-ng-data ./espeak-ng-data
tar -czf espeak-ng-data.tar.gz espeak-ng-data
latestTag=$(gh release view --json tagName --jq '.tagName')
gh release upload $latestTag espeak-ng-data.tar.gz --clobber
if: matrix.platform == 'macos-14'

- name: Uplaod to releases
run: |
latestTag=$(gh release view --json tagName --jq '.tagName')
gh release upload $latestTag ${{ matrix.archive }} --clobber
if [[ -f espeak-ng-data.tar.gz ]]; then
gh release upload $latestTag espeak-ng-data.tar.gz --clobber
fi
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
Expand Down

0 comments on commit aba06a8

Please sign in to comment.