From e6dc6750acc2de895712665c08fee0b201dc0e77 Mon Sep 17 00:00:00 2001 From: Joe Kaufeld Date: Thu, 23 Mar 2023 19:41:03 -0400 Subject: [PATCH] another release --- .github/workflows/build_and_release.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_and_release.yml b/.github/workflows/build_and_release.yml index 6fab9e6..9a61533 100644 --- a/.github/workflows/build_and_release.yml +++ b/.github/workflows/build_and_release.yml @@ -27,15 +27,20 @@ jobs: run: | sed -i -e "s/?????/${{ env.CURRENT_TIME_VERSION }}/g" src/__init__.py make build - - name: UPLOAD! + - name: Create release! run: | + echo ${{ github.event.repository.name }} + echo ${{ github.event.repository.owner }} + echo ${{ github.event.repository }} echo """release_id=$(\ - curl -s https://git.joekaufeld.com/api/v1/repos/jkaufeld/utils/releases \ + curl -s https://git.joekaufeld.com/api/v1/repos/${{ github.event.repository.owner }}/${{ github.event.repository.name }}/releases \ -H "Authorization: token ${{ secrets.PAT }}" \ -d tag_name=${{ env.CURRENT_TIME_VERSION }} \ | python3 -c "import sys, json; print(json.load(sys.stdin)['id'])"\ )""" >> $GITHUB_ENV - - curl https://git.joekaufeld.com/api/v1/repos/jkaufeld/utils/releases/${{ env.release_id }}/assets \ + - name: Upload assets! + run: | + echo ${{ env.release_id }} + echo $(curl https://git.joekaufeld.com/api/v1/repos/jkaufeld/utils/releases/${{ env.release_id }}/assets \ -H "Authorization: token ${{ secrets.PAT }}" \ - -F attachment=@utils + -F attachment=@utils)