Skip to content

Commit

Permalink
make it name it to CmbMinigame.zip
Browse files Browse the repository at this point in the history
  • Loading branch information
29cmb committed Nov 16, 2024
1 parent 8f9dc33 commit f944cea
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,14 @@ jobs:
with:
fetch-depth: 0

- name: Get timestamp
id: timestamp
run: echo "timestamp=$(date +'%Y%m%d_%H%M%S')" >> $GITHUB_OUTPUT

- name: Get short SHA
id: sha
run: echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Create zip archive
run: |
zip -r "repo_${{ steps.timestamp.outputs.timestamp }}_${{ steps.sha.outputs.sha }}.zip" . \
zip -r "CmbMinigames.zip" . \
-x "*.git*" \
-x ".github/*" \
-x "*.zip"
- name: Upload zip artifact
uses: actions/upload-artifact@v4
with:
name: repository-archive
path: "repo_${{ steps.timestamp.outputs.timestamp }}_${{ steps.sha.outputs.sha }}.zip"
path: "CmbMinigames.zip"

0 comments on commit f944cea

Please sign in to comment.