From 65d701d84ba8d0c2e695ab4a38b597710256e69d Mon Sep 17 00:00:00 2001 From: Kronos2308 Date: Sun, 10 Nov 2024 20:21:20 +0000 Subject: [PATCH] Update Compress.yml --- .github/workflows/Compress.yml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/workflows/Compress.yml b/.github/workflows/Compress.yml index 0d593b33..71e2eaa9 100644 --- a/.github/workflows/Compress.yml +++ b/.github/workflows/Compress.yml @@ -6,16 +6,25 @@ on: jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - name: Compress to File. + - uses: actions/checkout@v3 + + - name: Install rar + run: apt-get install rar -y + + - name: Compress to File run: | - sudo apt install rar -y - rar a -m5 -r -s Source_code.rar ./SD_card_root/ + TAG_NAME=${GITHUB_REF##*/} + rar a -m5 -r -s "Source_code_${TAG_NAME}.rar" ./SD_card_root/ - - uses: actions/upload-artifact@master + - name: Create or Update GitHub Release + uses: softprops/action-gh-release@v1 with: - name: Release - path: Source_code.rar + files: | + "Source_code_${TAG_NAME}.rar" + "boot_payload.bin" + tag_name: "${GITHUB_REF##*/}" + overwrite: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}