mirror of
https://github.com/darkzoul5/YoutubePlaylistSync.git
synced 2026-07-03 12:34:00 +03:00
Refactor release in workflow: use artifacts action for Windows and Linux, and update release publishing to release packages simultaneously.
This commit is contained in:
@@ -61,12 +61,11 @@ jobs:
|
|||||||
zip -r "$WORKSPACE_ROOT/$ZIP_NAME" *
|
zip -r "$WORKSPACE_ROOT/$ZIP_NAME" *
|
||||||
echo "ZIP_PATH=$WORKSPACE_ROOT/$ZIP_NAME" >> $GITHUB_ENV
|
echo "ZIP_PATH=$WORKSPACE_ROOT/$ZIP_NAME" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Upload Windows release
|
- name: Upload Windows artifact
|
||||||
uses: https://gitea.com/actions/gitea-release-action@v1
|
uses: https://gitea.com/actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
files: ${{ env.ZIP_PATH }}
|
name: windows-zip
|
||||||
tag_name: ${{ env.TAG }}
|
path: ${{ env.ZIP_PATH }}
|
||||||
name: ${{ env.TAG }}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -149,9 +148,33 @@ jobs:
|
|||||||
zip -r "$WORKSPACE_ROOT/$ZIP_NAME" *
|
zip -r "$WORKSPACE_ROOT/$ZIP_NAME" *
|
||||||
echo "ZIP_PATH=$WORKSPACE_ROOT/$ZIP_NAME" >> $GITHUB_ENV
|
echo "ZIP_PATH=$WORKSPACE_ROOT/$ZIP_NAME" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Upload Linux release
|
- name: Upload Linux artifact
|
||||||
|
uses: https://gitea.com/actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: linux-zip
|
||||||
|
path: ${{ env.ZIP_PATH }}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [windows-package, linux-package]
|
||||||
|
steps:
|
||||||
|
- name: Download all artifacts
|
||||||
|
uses: https://gitea.com/actions/download-artifact@v5
|
||||||
|
|
||||||
|
- name: Extract tag name
|
||||||
|
run: |
|
||||||
|
REF="${GITEA_REF:-$GITHUB_REF}"
|
||||||
|
TAG="${REF#refs/tags/}"
|
||||||
|
echo "TAG=$TAG" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Publish release
|
||||||
uses: https://gitea.com/actions/gitea-release-action@v1
|
uses: https://gitea.com/actions/gitea-release-action@v1
|
||||||
with:
|
with:
|
||||||
files: ${{ env.ZIP_PATH }}
|
|
||||||
tag_name: ${{ env.TAG }}
|
tag_name: ${{ env.TAG }}
|
||||||
name: ${{ env.TAG }}
|
name: ${{ env.TAG }}
|
||||||
|
files: |
|
||||||
|
linux-zip/*
|
||||||
|
windows-zip/*
|
||||||
Reference in New Issue
Block a user