mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 06:13:58 -07:00
build.yml: Fixed deprecated echo
::set-output`
This commit is contained in:
parent
1fbdf885a4
commit
dcb6446b46
1 changed files with 7 additions and 6 deletions
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
|
@ -23,15 +23,16 @@ jobs:
|
||||||
|
|
||||||
- name: Get commit hash
|
- name: Get commit hash
|
||||||
id: get_commit_hash
|
id: get_commit_hash
|
||||||
run: echo "::set-output name=commit_hash::$(git rev-parse --short HEAD)"
|
run: |
|
||||||
|
COMMIT_HASH=$(git rev-parse --short HEAD)
|
||||||
|
echo "COMMIT_HASH=$COMMIT_HASH" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Create archive
|
- name: Create archive
|
||||||
run: |
|
|
||||||
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
|
id: create_zip
|
||||||
|
run: |
|
||||||
|
ZIP_NAME="torrentpier-${{ steps.get_commit_hash.outputs.COMMIT_HASH }}.zip"
|
||||||
|
zip -r "$ZIP_NAME" . -x ".git/*" ".github/*"
|
||||||
|
echo "zip_name=$ZIP_NAME" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Upload Archive
|
- name: Upload Archive
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue