Skip to content

Commit

Permalink
Add build sha
Browse files Browse the repository at this point in the history
  • Loading branch information
pjaudiomv committed Sep 14, 2024
1 parent 59e9529 commit 8574bfc
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,8 @@ jobs:
export ARTIFACT_FILENAME=${ARTIFACT_FILE}.zip
echo "ARTIFACT_FILENAME=${ARTIFACT_FILENAME}" >> $GITHUB_ENV
git archive --format=zip --output=${ARTIFACT_FILENAME} HEAD
unzip ${ARTIFACT_FILENAME}
rm ${ARTIFACT_FILENAME}
echo ${GITHUB_SHA} > ${ARTIFACT_FILE}/build.txt
find ./${ARTIFACT_FILE} -type d | xargs chmod 755
find ./${ARTIFACT_FILE} -name '*.php' | xargs chmod 644
zip -r -9 ${ARTIFACT_FILENAME} ${ARTIFACT_FILE}
echo ${GITHUB_SHA} > build.txt
zip ${ARTIFACT_FILENAME} build.txt
mkdir artifacts/
mv ${ARTIFACT_FILENAME} artifacts/
Expand Down

0 comments on commit 8574bfc

Please sign in to comment.