Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Krught authored Jan 4, 2024
1 parent 00269bd commit ec7fd5c
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,17 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Exclude unwanted files and create ZIP
- name: Create BeneBlacklist folder
run: |
mkdir BeneBlacklist
cp -r !(.github|.gitignore|pkgmeta.yaml) BeneBlacklist/
- name: Create ZIP file
run: |
mkdir temp_zip
zip -r temp_zip/BeneBlacklist.zip . -x '.github/*' '.gitignore' 'pkgmeta.yaml'
timestamp=$(date +"%Y-%m-%d")
zip -r "BeneBlacklist-$timestamp.zip" temp_zip/BeneBlacklist.zip
rm -rf temp_zip
zip -r "BeneBlacklist-$timestamp.zip" BeneBlacklist
rm -rf BeneBlacklist

- name: Create Release
uses: "marvinpinto/action-automatic-releases@latest"
Expand Down

0 comments on commit ec7fd5c

Please sign in to comment.