Skip to content

Commit

Permalink
Update Compress.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Kronos2308 committed Nov 10, 2024
1 parent 23db429 commit 65d701d
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/Compress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 65d701d

Please sign in to comment.