change artifact filename
Some checks failed
build / Create Release (push) Successful in 4s
build / publish (zip, x86_64-pc-windows-msvc, windows-2022, windows-x86_64) (push) Failing after 7m54s
build / publish (tar.gz, x86_64-unknown-linux-gnu, ubuntu-latest, linux-x86_64) (push) Failing after 16m55s

This commit is contained in:
2024-07-12 21:23:07 +02:00
parent 1a6589e6b8
commit 336bc15690

View File

@@ -69,14 +69,14 @@ jobs:
if: matrix.platform == 'windows-2022'
run: |
cp -r -fo assets $env:GITHUB_WORKSPACE/output/
Compress-Archive -Force -Path $env:GITHUB_WORKSPACE/output/* -DestinationPath $env:GITHUB_WORKSPACE/${{ gitea.event.repository.name }}_${{ matrix.name }}.${{ matrix.archive }}
Compress-Archive -Force -Path $env:GITHUB_WORKSPACE/output/* -DestinationPath $env:GITHUB_WORKSPACE/${{ gitea.event.repository.name }}-${{ gitea.ref }}-${{ matrix.name }}.${{ matrix.archive }}
- name: Collect linux/macos artifacts
if: matrix.platform != 'windows-2022'
run: |
cp -rf assets ${GITHUB_WORKSPACE}/output/
tar -czvf ${GITHUB_WORKSPACE}/${{ gitea.event.repository.name }}_${{ matrix.name }}.${{ matrix.archive }} -C ${GITHUB_WORKSPACE}/output/ .
tar -czvf ${GITHUB_WORKSPACE}/${{ gitea.event.repository.name }}-${{ gitea.ref }}-${{ matrix.name }}.${{ matrix.archive }} -C ${GITHUB_WORKSPACE}/output/ .
- name: Upload artifacts
uses: akkuman/gitea-release-action@v1
with:
allowUpdates: true
files: "${{ gitea.event.repository.name }}_${{ matrix.name }}.${{ matrix.archive }}"
files: "${{ gitea.event.repository.name }}-${{ gitea.ref }}-${{ matrix.name }}.${{ matrix.archive }}"