More changes
This commit is contained in:
parent
791e898189
commit
e89c9a4a7a
@ -1,22 +1,5 @@
|
|||||||
name: 'Upload Release Asset to Gitea'
|
- name: Upload release artifact
|
||||||
description: 'Upload a file to a Gitea release'
|
uses: gitea/actions/gitea-upload-artifact@v1
|
||||||
inputs:
|
with:
|
||||||
upload_url:
|
name: OFDLV${{ steps.version.outputs.version }}.zip
|
||||||
description: 'The upload URL from the release creation step'
|
path: ./OFDLV${{ steps.version.outputs.version }}.zip
|
||||||
required: true
|
|
||||||
asset_path:
|
|
||||||
description: 'Path to the file to upload'
|
|
||||||
required: true
|
|
||||||
asset_name:
|
|
||||||
description: 'Name of the uploaded file'
|
|
||||||
required: true
|
|
||||||
asset_content_type:
|
|
||||||
description: 'Content-Type of the file'
|
|
||||||
default: 'application/octet-stream'
|
|
||||||
required: false
|
|
||||||
outputs:
|
|
||||||
upload_url:
|
|
||||||
description: 'The upload URL for attaching release assets'
|
|
||||||
runs:
|
|
||||||
using: 'node16'
|
|
||||||
main: 'index.js'
|
|
@ -69,16 +69,8 @@ jobs:
|
|||||||
GITEA_REPOSITORY: ${{ gitea.repository }}
|
GITEA_REPOSITORY: ${{ gitea.repository }}
|
||||||
GITEA_SERVER_URL: ${{ gitea.server_url }}
|
GITEA_SERVER_URL: ${{ gitea.server_url }}
|
||||||
|
|
||||||
- name: Debug upload URL
|
- name: Upload release artifact
|
||||||
run: |
|
uses: gitea/actions/gitea-upload-artifact@v1
|
||||||
echo "Upload URL: ${{ steps.create-release.outputs.upload_url }}"
|
|
||||||
|
|
||||||
- name: Upload release asset
|
|
||||||
uses: ./.gitea-actions/upload-release-asset
|
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create-release.outputs.upload_url }}
|
name: OFDLV${{ steps.version.outputs.version }}.zip
|
||||||
asset_path: ./OFDLV${{ steps.version.outputs.version }}.zip
|
path: ./OFDLV${{ steps.version.outputs.version }}.zip
|
||||||
asset_name: OFDLV${{ steps.version.outputs.version }}.zip
|
|
||||||
asset_content_type: application/zip
|
|
||||||
env:
|
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
|
Loading…
x
Reference in New Issue
Block a user