Files
llvm-mingw/.github/workflows/upload-artifacts.yml
T
Martin Storsjö 1ab52ba4a3 github: Generalize the patterns for moving artifacts that are to be uploaded
Exclude the artifacts from the asserts build, if available.
2023-04-27 10:47:15 +03:00

38 lines
921 B
YAML

name: Upload artifacts
on:
workflow_dispatch:
inputs:
commit:
description: 'Commit to extract from'
required: true
type: string
tag:
description: 'Tag to upload to'
required: true
type: string
permissions:
contents: read
jobs:
upload-release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: dawidd6/action-download-artifact@v2
with:
workflow: build.yml
workflow_conclusion: success
commit: ${{inputs.commit}}
- name: Rearrange files
run: |
rm -rf linux-asserts*
mv *-toolchain/*.zip *-toolchain/*.tar.xz .
- name: Upload binaries
env:
GITHUB_TOKEN: ${{github.token}}
run: |
gh release upload ${{inputs.tag}} *.tar.xz *.zip --clobber -R ${{github.repository}}