diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index a8ed2b7..4f8ac52 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -52,34 +52,16 @@ jobs: cp ./output/spearhead.lua ./output/spearhead.${{ steps.read_version.outputs.tag }}.lua echo "Versioned file created: spearhead.${{ steps.read_version.outputs.tag }}.lua" - - name: Create GitHub Release - uses: actions/create-release@v1 - id: create_release + - name: Create Release and Upload Assets + uses: akkuman/gitea-release-action@v1 with: tag_name: ${{ steps.read_version.outputs.tag }} - release_name: Release ${{ steps.read_version.outputs.tag }} + name: Release ${{ steps.read_version.outputs.tag }} draft: true - prerelease: false + files: |- + ./output/spearhead.lua + ./output/spearhead.${{ steps.read_version.outputs.tag }}.lua + #token: ${{ secrets.GITHUB_TOKEN }} env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Upload Spearhead.lua Asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./output/spearhead.lua - asset_name: spearhead.lua - asset_content_type: application/octet-stream - - - name: Upload Versioned Spearhead.lua Asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./output/spearhead.${{ steps.read_version.outputs.tag }}.lua - asset_name: spearhead.${{ steps.read_version.outputs.tag }}.lua - asset_content_type: application/octet-stream + NODE_OPTIONS: '--experimental-fetch'