From e34a83fb2377e464e7df1267caf4deb0d1f46a64 Mon Sep 17 00:00:00 2001 From: LatantSea <69185230+LatantSea@users.noreply.github.com> Date: Tue, 11 Aug 2020 17:24:05 +0000 Subject: [PATCH] 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 --- .github/workflows/githubci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/githubci.yml b/.github/workflows/githubci.yml index a683845..b671fba 100644 --- a/.github/workflows/githubci.yml +++ b/.github/workflows/githubci.yml @@ -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/