mirror of
https://github.com/BtbN/FFmpeg-Builds.git
synced 2025-05-24 02:22:10 +02:00
Migrate to artifacts v4
This commit is contained in:
parent
19832e173a
commit
ae073965f3
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@ -251,10 +251,16 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
T="$(echo -n ${{ github.token }} | sha256sum | head -c 64)" && echo -e "::add-mask::${T}\n::stop-commands::${T}"
|
T="$(echo -n ${{ github.token }} | sha256sum | head -c 64)" && echo -e "::add-mask::${T}\n::stop-commands::${T}"
|
||||||
./build.sh ${{ matrix.target }} ${{ matrix.variant }}
|
./build.sh ${{ matrix.target }} ${{ matrix.variant }}
|
||||||
|
- name: Replace spaces in string
|
||||||
|
id: strs
|
||||||
|
run: |
|
||||||
|
SLUG="${{ matrix.target }}-${{ matrix.variant }}"
|
||||||
|
echo "artifact_slug=${SLUG// /-}" >> $GITHUB_OUTPUT
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ffmpeg
|
name: ffmpeg-${{ steps.strs.outputs.artifact_slug }}
|
||||||
|
overwrite: true
|
||||||
path: artifacts/*
|
path: artifacts/*
|
||||||
publish_release:
|
publish_release:
|
||||||
name: Publish release
|
name: Publish release
|
||||||
@ -267,9 +273,10 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ffmpeg
|
pattern: ffmpeg-*
|
||||||
|
merge-multiple: true
|
||||||
path: artifacts
|
path: artifacts
|
||||||
- name: Create release
|
- name: Create release
|
||||||
id: create_release
|
id: create_release
|
||||||
|
10
.github/workflows/pr.yml
vendored
10
.github/workflows/pr.yml
vendored
@ -57,8 +57,14 @@ jobs:
|
|||||||
QUICKBUILD: ${{ matrix.quickbuild }}
|
QUICKBUILD: ${{ matrix.quickbuild }}
|
||||||
- name: Build ffmpeg
|
- name: Build ffmpeg
|
||||||
run: ./build.sh ${{ matrix.target }} ${{ matrix.variant }}
|
run: ./build.sh ${{ matrix.target }} ${{ matrix.variant }}
|
||||||
|
- name: Replace spaces in string
|
||||||
|
id: strs
|
||||||
|
run: |
|
||||||
|
SLUG="${{ matrix.target }}-${{ matrix.variant }}"
|
||||||
|
echo "artifact_slug=${SLUG// /-}" >> $GITHUB_OUTPUT
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ffmpeg
|
name: ffmpeg-${{ steps.strs.outputs.artifact_slug }}
|
||||||
|
overwrite: true
|
||||||
path: artifacts/*
|
path: artifacts/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user