Skip to content

Commit

Permalink
Migrate to artifacts v4
Browse files Browse the repository at this point in the history
  • Loading branch information
BtbN committed Feb 13, 2024
1 parent 19832e1 commit ae07396
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,16 @@ jobs:
run: |
T="$(echo -n ${{ github.token }} | sha256sum | head -c 64)" && echo -e "::add-mask::${T}\n::stop-commands::${T}"
./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
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ffmpeg
name: ffmpeg-${{ steps.strs.outputs.artifact_slug }}
overwrite: true
path: artifacts/*
publish_release:
name: Publish release
Expand All @@ -267,9 +273,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ffmpeg
pattern: ffmpeg-*
merge-multiple: true
path: artifacts
- name: Create release
id: create_release
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,14 @@ jobs:
QUICKBUILD: ${{ matrix.quickbuild }}
- name: Build ffmpeg
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
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ffmpeg
name: ffmpeg-${{ steps.strs.outputs.artifact_slug }}
overwrite: true
path: artifacts/*

0 comments on commit ae07396

Please sign in to comment.