Skip to content

Commit a9e70ac

Browse files
committed
fix release file name
1 parent 29d38ef commit a9e70ac

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/ffmpeg-release.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,31 +24,31 @@ jobs:
2424
- name: Set build target (linux)
2525
if: matrix.flavor == 'linux'
2626
run: |
27-
echo "build_tag=linux" >> $GITHUB_ENV
27+
echo "build_tag=ffmpeg-linux-export" >> $GITHUB_ENV
2828
echo "target_os=linux-amd64" >> $GITHUB_ENV
2929
3030
- name: Set build target (windows)
3131
if: matrix.flavor == 'windows'
3232
run: |
33-
echo "build_tag=windows" >> $GITHUB_ENV
34-
echo "target_os=x64" >> $GITHUB_ENV
33+
echo "build_tag=ffmpeg-windows-export" >> $GITHUB_ENV
34+
echo "target_os=windows-x64" >> $GITHUB_ENV
3535
3636
- name: Export - ffmpeg
3737
run: |
38-
docker buildx build --platform linux/amd64 --target ffmpeg-${{ env.build_tag }}-export --output type=local,dest=/tmp/build \
39-
-t ffmpeg-${{ env.build_tag }} --build-arg FFMPEG_VERSION=${{ matrix.ffmpeg }} -f ./Dockerfile .
38+
docker buildx build --platform linux/amd64 --target ${{ env.build_tag }} --output type=local,dest=/tmp/build \
39+
-t ${{ env.build_tag }} --build-arg FFMPEG_VERSION=${{ matrix.ffmpeg }} -f ./Dockerfile .
4040
4141
- name: Archive artifact
4242
run: |
43-
mkdir /tmp/ffmpeg-${{ matrix.ffmpeg }}${{ env.build_tag }}-${{ env.target_os }}
44-
mv /tmp/build/* /tmp/ffmpeg-${{ matrix.ffmpeg }}${{ env.build_tag }}-${{ env.target_os }}/
45-
tar acvf /tmp/ffmpeg-${{ matrix.ffmpeg }}${{ env.build_tag }}-${{ env.target_os }}.tar.xz -C /tmp ffmpeg-${{ matrix.ffmpeg }}${{ env.build_tag }}-${{ env.target_os }}
43+
mkdir /tmp/ffmpeg-${{ matrix.ffmpeg }}-${{ env.target_os }}
44+
mv /tmp/build/* /tmp/ffmpeg-${{ matrix.ffmpeg }}-${{ env.target_os }}/
45+
tar acvf /tmp/ffmpeg-${{ matrix.ffmpeg }}-${{ env.target_os }}.tar.xz -C /tmp ffmpeg-${{ matrix.ffmpeg }}-${{ env.target_os }}
4646
4747
- name: Upload artifact
4848
uses: actions/upload-artifact@v3
4949
with:
50-
name: ffmpeg-${{ matrix.ffmpeg }}${{ env.build_tag }}
51-
path: /tmp/ffmpeg-${{ matrix.ffmpeg }}${{ env.build_tag }}-${{ env.target_os }}.tar.xz
50+
name: ffmpeg-${{ matrix.ffmpeg }}-${{ env.target_os }}
51+
path: /tmp/ffmpeg-${{ matrix.ffmpeg }}-${{ env.target_os }}.tar.xz
5252

5353
release:
5454
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)