Skip to content

Commit e05f2ed

Browse files
authored
upđate
1 parent cdd68a0 commit e05f2ed

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

.github/workflows/zip-and-release.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,36 +32,26 @@ jobs:
3232
3333
# Bước 1: Biên dịch file .te thành .mod
3434
echo "Compiling ee-logrotate.te to ee-logrotate.mod..."
35-
# Đổi tên file đầu ra để khớp với tên module bên trong file .te
3635
checkmodule -M -m -o ee-logrotate.mod ee-logrotate.te
3736
3837
# Bước 2: Tạo policy package (.pp) từ file .mod
3938
echo "Creating ee-logrotate.pp from ee-logrotate.mod..."
4039
semodule_package -o ee-logrotate.pp -m ee-logrotate.mod
4140
42-
# Thêm một bước để lấy thông tin tag mới nhất, vì upload release cần tag
41+
# Lấy thông tin tag mới nhất, vì upload release cần tag
4342
- name: Get the latest tag
4443
id: get_tag
4544
run: |
4645
latest_tag=$(git describe --tags --abbrev=0)
4746
echo "latest_tag=${latest_tag}" >> $GITHUB_OUTPUT
4847
echo "📌 Latest tag: ${latest_tag}"
4948
50-
# Thêm bước này để tải file .pp lên GitHub Release
49+
# Tải file .pp lên GitHub Release
5150
- name: Upload compiled policy file to release
5251
env:
5352
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5453
run: |
5554
# Di chuyển file .pp về thư mục gốc để dễ dàng upload
5655
mv logrotate/selinux-policy/ee-logrotate.pp .
57-
# Đổi tên file để tải lên khớp với tên mới
5856
gh release upload ${{ steps.get_tag.outputs.latest_tag }} ee-logrotate.pp --clobber
5957
echo "✅ Successfully uploaded ee-logrotate.pp to release '${{ steps.get_tag.outputs.latest_tag }}'"
60-
61-
# Xóa bước upload artifact cũ
62-
# - name: Upload compiled policy file
63-
# uses: actions/upload-artifact@v4
64-
# with:
65-
# name: compiled-selinux-policy
66-
# path: ee-logrotate.pp
67-
# retention-days: 5

0 commit comments

Comments
 (0)