mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
Update build.yml
This commit is contained in:
parent
8e3ad5f69f
commit
1fbdf885a4
1 changed files with 6 additions and 2 deletions
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
@ -21,10 +21,14 @@ jobs:
|
|||
- name: Install Composer dependencies
|
||||
run: composer install --no-progress --prefer-dist --optimize-autoloader
|
||||
|
||||
- name: Get commit hash
|
||||
id: get_commit_hash
|
||||
run: echo "::set-output name=commit_hash::$(git rev-parse --short HEAD)"
|
||||
|
||||
- name: Create archive
|
||||
run: |
|
||||
timestamp=$(date +%Y%m%d%H%M%S)
|
||||
zip_name="torrentpier-$timestamp.zip"
|
||||
commit=${{ steps.get_commit_hash.outputs.commit_hash }}
|
||||
zip_name="torrentpier-$commit.zip"
|
||||
zip -r "$zip_name" . -x ".git/*" ".github/*"
|
||||
echo "::set-output name=zip_name::$zip_name"
|
||||
id: create_zip
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue