1
0
Fork 0

added artifacts and fixed release call

Allows artifacts to be downloaded when not building a release. Useful for hobbyists.
Fixed a call to 'upload_release_files.py' not having access to the /bin directory
pull/2/head
LatantSea 2020-08-11 17:24:05 +00:00 committed by GitHub
parent 73e643e322
commit e34a83fb23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -36,9 +36,14 @@ jobs:
- name: Upload Release Asset
if: github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested')
working-directory: tools
env:
UPLOAD_URL: ${{ github.event.release.upload_url }}
ADABOT_GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: "[ -z \"$ADABOT_GITHUB_ACCESS_TOKEN\" ] || python3 -u upload_release_files.py"
run: "[ -z \"$ADABOT_GITHUB_ACCESS_TOKEN\" ] || python3 -u tools/upload_release_files.py"
- name: Upload Artifacts
if: github.event_name != 'release'
uses: actions/upload-artifact@v2
with:
name: bin-artifacts
path: bin/