This commit is contained in:
parent
9703aba83b
commit
a05332ba66
@ -27,7 +27,7 @@ jobs:
|
||||
fi
|
||||
echo "::notice title=GOTIME::$GOTIME"
|
||||
# Set the output named "version_changed"
|
||||
echo "version_changed=$GOTIME" >> $GITHUB_OUTPUT
|
||||
echo "version_changed=$GOTIME" >> $GITEA_OUTPUT
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
@ -47,7 +47,7 @@ jobs:
|
||||
pip install shiv
|
||||
pip install poetry
|
||||
- name: Add VERSION env property
|
||||
run: echo "VERSION=v$(poetry version | python -c 'import sys;print(sys.stdin.read().split()[1])')" >> $GITHUB_ENV
|
||||
run: echo "VERSION=v$(poetry version | python -c 'import sys;print(sys.stdin.read().split()[1])')" >> $GITEA_ENV
|
||||
- name: Build the sucker
|
||||
run: |
|
||||
sed -i -e "s/?????/${{ env.VERSION }}/g" src/__init__.py
|
||||
@ -64,14 +64,14 @@ jobs:
|
||||
)
|
||||
echo """release_id=$(\
|
||||
curl -X POST \
|
||||
-s https://git.joekaufeld.com/api/v1/repos/${GITHUB_REPOSITORY%/*}/${{ github.event.repository.name }}/releases \
|
||||
-s https://git.joekaufeld.com/api/v1/repos/${GITEA_REPOSITORY%/*}/${{ gitea.event.repository.name }}/releases \
|
||||
-H "Authorization: token ${{ secrets.PAT }}" \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d "$JSON_DATA" \
|
||||
| python3 -c "import sys, json; print(json.load(sys.stdin)['id'])"\
|
||||
)""" >> $GITHUB_ENV
|
||||
)""" >> $GITEA_ENV
|
||||
- name: Upload assets!
|
||||
run: |
|
||||
curl https://git.joekaufeld.com/api/v1/repos/${GITHUB_REPOSITORY%/*}/${{ github.event.repository.name }}/releases/${{ env.release_id }}/assets \
|
||||
curl https://git.joekaufeld.com/api/v1/repos/${GITEA_REPOSITORY%/*}/${{ gitea.event.repository.name }}/releases/${{ env.release_id }}/assets \
|
||||
-H "Authorization: token ${{ secrets.PAT }}" \
|
||||
-F attachment=@utils
|
Loading…
Reference in New Issue
Block a user