From e89c9a4a7ad11d5256541132ada90b1b2a1a748c Mon Sep 17 00:00:00 2001 From: sim0n00ps Date: Sun, 4 May 2025 20:40:37 +0100 Subject: [PATCH] More changes --- .../upload-release-asset/action.yml | 27 ++++--------------- .gitea/workflows/publish-release.yml | 16 +++-------- 2 files changed, 9 insertions(+), 34 deletions(-) diff --git a/.gitea-actions/upload-release-asset/action.yml b/.gitea-actions/upload-release-asset/action.yml index 1c5e98a..09118e0 100644 --- a/.gitea-actions/upload-release-asset/action.yml +++ b/.gitea-actions/upload-release-asset/action.yml @@ -1,22 +1,5 @@ -name: 'Upload Release Asset to Gitea' -description: 'Upload a file to a Gitea release' -inputs: - upload_url: - description: 'The upload URL from the release creation step' - 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' +- name: Upload release artifact + uses: gitea/actions/gitea-upload-artifact@v1 + with: + name: OFDLV${{ steps.version.outputs.version }}.zip + path: ./OFDLV${{ steps.version.outputs.version }}.zip \ No newline at end of file diff --git a/.gitea/workflows/publish-release.yml b/.gitea/workflows/publish-release.yml index 0060164..6483ed7 100644 --- a/.gitea/workflows/publish-release.yml +++ b/.gitea/workflows/publish-release.yml @@ -69,16 +69,8 @@ jobs: GITEA_REPOSITORY: ${{ gitea.repository }} GITEA_SERVER_URL: ${{ gitea.server_url }} - - name: Debug upload URL - run: | - echo "Upload URL: ${{ steps.create-release.outputs.upload_url }}" - - - name: Upload release asset - uses: ./.gitea-actions/upload-release-asset + - name: Upload release artifact + uses: gitea/actions/gitea-upload-artifact@v1 with: - upload_url: ${{ steps.create-release.outputs.upload_url }} - asset_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 }} \ No newline at end of file + name: OFDLV${{ steps.version.outputs.version }}.zip + path: ./OFDLV${{ steps.version.outputs.version }}.zip \ No newline at end of file