Update macos.yml
Automatically publish macOS builds in tag nightly-github-actions
This commit is contained in:
14
.github/workflows/macos.yml
vendored
14
.github/workflows/macos.yml
vendored
@@ -84,6 +84,12 @@ jobs:
|
|||||||
echo "ARTIFACT_PATH=${GITHUB_WORKSPACE}/build/${ARTIFACT}" >> $GITHUB_ENV
|
echo "ARTIFACT_PATH=${GITHUB_WORKSPACE}/build/${ARTIFACT}" >> $GITHUB_ENV
|
||||||
echo "ARTIFACT_FILE=${ARTIFACT}" >> $GITHUB_ENV
|
echo "ARTIFACT_FILE=${ARTIFACT}" >> $GITHUB_ENV
|
||||||
zsh -c 'echo "Bundled in $(printf "%0.2f" $(($[$(date +%s)-$(cat bundlestamp)]/$((60.))))) minutes"'
|
zsh -c 'echo "Bundled in $(printf "%0.2f" $(($[$(date +%s)-$(cat bundlestamp)]/$((60.))))) minutes"'
|
||||||
|
printf '%s\n' \
|
||||||
|
"REF: ${REF}" \
|
||||||
|
"ARTIFACT: ${ARTIFACT}" \
|
||||||
|
"ARTIFACT_PATH: ${ARTIFACT_PATH}" \
|
||||||
|
"ARTIFACT_FILE: ${ARTIFACT_FILE}" \
|
||||||
|
"PUBLISH_NAME: ${PUBLISH_NAME}"
|
||||||
exit
|
exit
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
@@ -93,3 +99,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
date -u
|
date -u
|
||||||
zsh -c 'echo "Build completed in $(printf "%0.2f" $(($[$(date +%s)-$(cat build/stamp)]/$((60.))))) minutes"'
|
zsh -c 'echo "Build completed in $(printf "%0.2f" $(($[$(date +%s)-$(cat build/stamp)]/$((60.))))) minutes"'
|
||||||
|
|
||||||
|
- name: Publish artifacts
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
if: ${{github.ref_type == 'tag' || github.ref_name == 'dev'}}
|
||||||
|
with:
|
||||||
|
tag_name: nightly-github-actions
|
||||||
|
files: |
|
||||||
|
${{env.ARTIFACT_PATH}}
|
||||||
|
Reference in New Issue
Block a user