github: Upload all artifacts from scheduled builds to the "nightly" release
This commit is contained in:
1 parent
48276b7f42
commit
586a9acf02
1 file changed
+21
@@ -6,6 +6,9 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 * * *'
|
- cron: '0 0 * * *'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# For scheduled builds, get the commit ids of the latest versions to build.
|
# For scheduled builds, get the commit ids of the latest versions to build.
|
||||||
#
|
#
|
||||||
@@ -558,3 +561,21 @@ jobs:
|
|||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
make fate-rsync
|
make fate-rsync
|
||||||
make -j$(nproc) fate
|
make -j$(nproc) fate
|
||||||
|
|
||||||
|
upload-nightly:
|
||||||
|
if: (github.event_name == 'schedule') && (github.repository == 'mstorsjo/llvm-mingw')
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
needs: [linux, macos, linux-cross, test-toolchain, linux-test-cross-build-ffmpeg, test-ffmpeg]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Download all artifacts
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
- name: Rearrange files
|
||||||
|
run: |
|
||||||
|
mv windows-*-toolchain/*.zip linux-toolchain/*.tar.xz macos-toolchain/*.tar.xz .
|
||||||
|
- name: Upload binaries
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{github.token}}
|
||||||
|
run: |
|
||||||
|
gh release upload nightly *.tar.xz *.zip --clobber -R ${{github.repository}}
|
||||||
Reference in new issue
Block a user