This repository has been archived by the owner on Feb 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (49 loc) · 1.68 KB
/
compressRARSource.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: RAR Source
on:
workflow_run:
workflows: ["Auto Update Working Progress"]
types: [completed]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
permissions: write-all
env:
RAR_SOURCE_NAME: ${{ vars.RAR_SOURCE_NAME }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
rar-source:
name: RAR Source
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
- name: Install rar
run: sudo apt-get install rar
- name: RAR source
run: |
touch ${{ env.RAR_SOURCE_NAME }}.txt
echo "https://github.com/${{ github.repository }}/" > ${{ env.RAR_SOURCE_NAME }}.txt
mkdir ${{ env.RAR_SOURCE_NAME }}
cp -r *Bai* *.sln ${{ env.RAR_SOURCE_NAME }}.txt ${{ env.RAR_SOURCE_NAME }}
rar a -r ${{ env.RAR_SOURCE_NAME }}.rar ${{ env.RAR_SOURCE_NAME }}
- name: Release RAR source code
uses: svenstaro/upload-release-action@master
with:
repo_token: ${{ env.GITHUB_TOKEN }}
file: ${{ env.RAR_SOURCE_NAME }}.rar
tag: RAR
release_name: RAR Source Code
overwrite: true
promote: true
body: "Rar source code để nộp bài, không bao gồm các file ngoài Visual Studio"
- name: Release .txt
uses: svenstaro/upload-release-action@master
with:
repo_token: ${{ env.GITHUB_TOKEN }}
file: ${{ env.RAR_SOURCE_NAME }}.txt
tag: RAR
release_name: RAR Source Code
overwrite: true
promote: true
body: "Rar source code để nộp bài, không bao gồm các file ngoài Visual Studio"