💚 apparently most of the gitea-specific envs don't work yet
This commit is contained in:
parent
a9eb6da4bd
commit
bd645ee02d
@ -27,7 +27,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
echo "::notice title=GOTIME::$GOTIME"
|
echo "::notice title=GOTIME::$GOTIME"
|
||||||
# Set the output named "version_changed"
|
# Set the output named "version_changed"
|
||||||
echo "version_changed=$GOTIME" >> $GITEA_OUTPUT
|
echo "version_changed=$GOTIME" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -47,7 +47,9 @@ jobs:
|
|||||||
pip install shiv
|
pip install shiv
|
||||||
pip install poetry
|
pip install poetry
|
||||||
- name: Add VERSION env property
|
- 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])')" >> $GITHUB_ENV
|
||||||
|
echo ${{ env.VERSION }}
|
||||||
- name: Build the sucker
|
- name: Build the sucker
|
||||||
run: |
|
run: |
|
||||||
sed -i -e "s/?????/${{ env.VERSION }}/g" src/__init__.py
|
sed -i -e "s/?????/${{ env.VERSION }}/g" src/__init__.py
|
||||||
@ -64,7 +66,7 @@ jobs:
|
|||||||
)
|
)
|
||||||
echo """release_id=$(\
|
echo """release_id=$(\
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
-s https://git.joekaufeld.com/api/v1/repos/${GITEA_REPOSITORY%/*}/${{ gitea.event.repository.name }}/releases \
|
-s https://git.joekaufeld.com/api/v1/repos/${GITHUB_REPOSITORY%/*}/${{ github.event.repository.name }}/releases \
|
||||||
-H "Authorization: token ${{ secrets.PAT }}" \
|
-H "Authorization: token ${{ secrets.PAT }}" \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
-d "$JSON_DATA" \
|
-d "$JSON_DATA" \
|
||||||
@ -72,6 +74,6 @@ jobs:
|
|||||||
)""" >> $GITHUB_ENV
|
)""" >> $GITHUB_ENV
|
||||||
- name: Upload assets!
|
- name: Upload assets!
|
||||||
run: |
|
run: |
|
||||||
curl https://git.joekaufeld.com/api/v1/repos/${GITEA_REPOSITORY%/*}/${{ gitea.event.repository.name }}/releases/${{ env.release_id }}/assets \
|
curl https://git.joekaufeld.com/api/v1/repos/${GITHUB_REPOSITORY%/*}/${{ github.event.repository.name }}/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