#8 : Publish fails if path provided #9
@@ -201,3 +201,4 @@ cython_debug/
|
||||
# PyPI configuration file
|
||||
.pypirc
|
||||
|
||||
*.code-workspace
|
||||
@@ -20,5 +20,6 @@ runs:
|
||||
$NAME: ${{ inputs.name }}
|
||||
run: |
|
||||
name="${NAME:-${{ inputs.file }}}"
|
||||
name="${name##*/}"
|
||||
curl --fail-with-body -X POST -H "Authorization: token ${ACTI_BOT_TOKEN}" -F "attachment=@${{ inputs.file }}" \
|
||||
${{ gitea.api_url }}/repos/${{ gitea.repository }}/releases/${{ inputs.release }}/assets?name=${name}
|
||||
+4
-1
@@ -20,8 +20,11 @@ runs:
|
||||
using: composite
|
||||
steps:
|
||||
- shell: bash
|
||||
env:
|
||||
INPUT_FILE: ${{ inputs.file }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
filename="${INPUT_FILE##*/}"
|
||||
if [[ "${{ inputs.force }}" == "true" ]]; then
|
||||
status="$(
|
||||
curl --silent --show-error --output /dev/null --write-out '%{http_code}' \
|
||||
@@ -41,4 +44,4 @@ runs:
|
||||
curl --fail-with-body \
|
||||
--user "acti-bot:${ACTI_BOT_TOKEN}" \
|
||||
--upload-file ${{ inputs.file }} \
|
||||
"${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/generic/${{ inputs.package }}/${{ inputs.version }}/${{ inputs.file }}"
|
||||
"${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/generic/${{ inputs.package }}/${{ inputs.version }}/${filename}"
|
||||
|
||||
Reference in New Issue
Block a user