parent
10ee297269
commit
e6dc6750ac
15
.github/workflows/build_and_release.yml
vendored
15
.github/workflows/build_and_release.yml
vendored
@ -27,15 +27,20 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sed -i -e "s/?????/${{ env.CURRENT_TIME_VERSION }}/g" src/__init__.py
|
sed -i -e "s/?????/${{ env.CURRENT_TIME_VERSION }}/g" src/__init__.py
|
||||||
make build
|
make build
|
||||||
- name: UPLOAD!
|
- name: Create release!
|
||||||
run: |
|
run: |
|
||||||
|
echo ${{ github.event.repository.name }}
|
||||||
|
echo ${{ github.event.repository.owner }}
|
||||||
|
echo ${{ github.event.repository }}
|
||||||
echo """release_id=$(\
|
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 }}" \
|
-H "Authorization: token ${{ secrets.PAT }}" \
|
||||||
-d tag_name=${{ env.CURRENT_TIME_VERSION }} \
|
-d tag_name=${{ env.CURRENT_TIME_VERSION }} \
|
||||||
| python3 -c "import sys, json; print(json.load(sys.stdin)['id'])"\
|
| python3 -c "import sys, json; print(json.load(sys.stdin)['id'])"\
|
||||||
)""" >> $GITHUB_ENV
|
)""" >> $GITHUB_ENV
|
||||||
|
- name: Upload assets!
|
||||||
curl https://git.joekaufeld.com/api/v1/repos/jkaufeld/utils/releases/${{ env.release_id }}/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 }}" \
|
-H "Authorization: token ${{ secrets.PAT }}" \
|
||||||
-F attachment=@utils
|
-F attachment=@utils)
|
||||||
|
Loading…
Reference in New Issue
Block a user