-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/bmlt-enabled/bmlt-workflow
- Loading branch information
Showing
2 changed files
with
19 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,13 +65,9 @@ jobs: | |
export ARTIFACT_FILE=bmlt-workflow-${GITHUB_RUN_NUMBER}-${GITHUB_SHA} | ||
export ARTIFACT_FILENAME=${ARTIFACT_FILE}.zip | ||
echo "ARTIFACT_FILENAME=${ARTIFACT_FILENAME}" >> $GITHUB_ENV | ||
git archive --format=zip --output=${ARTIFACT_FILENAME} --prefix=${ARTIFACT_FILE}/ 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} | ||
git archive --format=zip --output=${ARTIFACT_FILENAME} HEAD | ||
echo ${GITHUB_SHA} > build.txt | ||
zip ${ARTIFACT_FILENAME} build.txt | ||
mkdir artifacts/ | ||
mv ${ARTIFACT_FILENAME} artifacts/ | ||
|
@@ -86,6 +82,14 @@ jobs: | |
run: | | ||
aws s3 cp artifacts/${ARTIFACT_FILENAME} s3://${{ secrets.S3_BUCKET }}/bmlt-workflow/${ARTIFACT_FILENAME} | ||
- name: Publish Release to Latest WP 🎉 | ||
id: publish_latest | ||
uses: bmlt-enabled/[email protected] | ||
with: | ||
file: artifacts/${{ env.ARTIFACT_FILENAME }} | ||
s3_key: bmlt-workflow | ||
aws_account_id: ${{ secrets.AWS_ACCOUNT_ID }} | ||
|
||
- uses: act10ns/slack@v1 | ||
with: | ||
status: ${{ job.status }} | ||
|