1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-22 02:12:30 +01:00

improve step naming

This commit is contained in:
Mikael Finstad 2023-12-10 12:26:35 +08:00
parent bfc764094a
commit 954c845e7d
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

View File

@ -38,7 +38,7 @@ jobs:
# Because of timeout issue https://github.com/yarnpkg/yarn/issues/4890 # Because of timeout issue https://github.com/yarnpkg/yarn/issues/4890
- run: yarn install --immutable --network-timeout 1000000 - run: yarn install --immutable --network-timeout 1000000
- name: Install and login to Snapcraft - name: (Linux) Install and login to Snapcraft
uses: samuelmeuli/action-snapcraft@v2 uses: samuelmeuli/action-snapcraft@v2
if: startsWith(matrix.os, 'ubuntu') if: startsWith(matrix.os, 'ubuntu')
@ -49,24 +49,24 @@ jobs:
run: | run: |
echo -n "$PROVISIONING_PROFILE_BASE64" | base64 --decode > LosslessCut_Mac_App_Store_provisioning_profile.provisionprofile echo -n "$PROVISIONING_PROFILE_BASE64" | base64 --decode > LosslessCut_Mac_App_Store_provisioning_profile.provisionprofile
- name: Prepare Apple API key - name: (MacOS) Prepare Apple API key
# Import Apple API key for uploading to Mac App Store and for notarization # Import Apple API key for uploading to Mac App Store and for notarization
if: startsWith(matrix.os, 'macos') if: startsWith(matrix.os, 'macos')
run: | run: |
mkdir -p ~/.appstoreconnect/private_keys/ mkdir -p ~/.appstoreconnect/private_keys/
echo '${{ secrets.api_key }}' > ~/.appstoreconnect/private_keys/AuthKey_${{ secrets.api_key_id }}.p8 echo '${{ secrets.api_key }}' > ~/.appstoreconnect/private_keys/AuthKey_${{ secrets.api_key_id }}.p8
- name: Download ffmpeg for Mac - name: (MacOS) Download ffmpeg
if: startsWith(matrix.os, 'macos') if: startsWith(matrix.os, 'macos')
run: | run: |
yarn download-ffmpeg-darwin-x64 yarn download-ffmpeg-darwin-x64
yarn download-ffmpeg-darwin-arm64 yarn download-ffmpeg-darwin-arm64
- name: Download ffmpeg for Windows - name: (Windows) Download ffmpeg
if: startsWith(matrix.os, 'windows') if: startsWith(matrix.os, 'windows')
run: yarn download-ffmpeg-win32-x64 run: yarn download-ffmpeg-win32-x64
- name: Download ffmpeg for Linux - name: (Linux) Download ffmpeg
if: startsWith(matrix.os, 'ubuntu') if: startsWith(matrix.os, 'ubuntu')
run: yarn download-ffmpeg-linux-x64 run: yarn download-ffmpeg-linux-x64
@ -94,12 +94,13 @@ jobs:
APPLE_API_KEY_ID: ${{ secrets.api_key_id }} APPLE_API_KEY_ID: ${{ secrets.api_key_id }}
APPLE_API_ISSUER: ${{ secrets.api_key_issuer_id }} APPLE_API_ISSUER: ${{ secrets.api_key_issuer_id }}
- name: Upload to Mac App Store - name: (MacOS) Upload to Mac App Store
if: startsWith(matrix.os, 'macos') && env.is_tag == 'true' if: startsWith(matrix.os, 'macos') && env.is_tag == 'true'
run: | run: |
node script/xcrun-wrapper.mjs dist/mas-universal/LosslessCut-mac-universal.pkg ${{ secrets.api_key_id }} ${{ secrets.api_key_issuer_id }} 1505323402 no.mifi.losslesscut-mac node script/xcrun-wrapper.mjs dist/mas-universal/LosslessCut-mac-universal.pkg ${{ secrets.api_key_id }} ${{ secrets.api_key_issuer_id }} 1505323402 no.mifi.losslesscut-mac
- uses: actions/upload-artifact@v3 - name: (MacOS) Upload artifacts
uses: actions/upload-artifact@v3
if: startsWith(matrix.os, 'macos') && env.is_tag == 'false' if: startsWith(matrix.os, 'macos') && env.is_tag == 'false'
with: with:
name: MacOS name: MacOS
@ -107,14 +108,16 @@ jobs:
dist/LosslessCut-mac-arm64.dmg dist/LosslessCut-mac-arm64.dmg
dist/LosslessCut-mac-x64.dmg dist/LosslessCut-mac-x64.dmg
- uses: actions/upload-artifact@v3 - name: (Windows) Upload artifacts
uses: actions/upload-artifact@v3
if: startsWith(matrix.os, 'windows') && env.is_tag == 'false' if: startsWith(matrix.os, 'windows') && env.is_tag == 'false'
with: with:
name: Windows name: Windows
path: | path: |
dist/LosslessCut-win-x64.7z dist/LosslessCut-win-x64.7z
- uses: actions/upload-artifact@v3 - name: (Linux) Upload artifacts
uses: actions/upload-artifact@v3
if: startsWith(matrix.os, 'ubuntu') && env.is_tag == 'false' if: startsWith(matrix.os, 'ubuntu') && env.is_tag == 'false'
with: with:
name: Linux name: Linux