Fixed workflow build
Some checks failed
/ build (push) Failing after 1m54s

This commit is contained in:
lichenblankie 2026-04-11 04:29:04 +00:00
parent ac088cc291
commit c8b9364f32

View file

@ -30,11 +30,13 @@ jobs:
run: | run: |
cp dist/TinyWeb TinyWeb-linux-x64 cp dist/TinyWeb TinyWeb-linux-x64
chmod +x TinyWeb-linux-x64 chmod +x TinyWeb-linux-x64
gzip -k TinyWeb-linux-x64
- name: Upload artifact - name: Upload release
uses: https://code.forgejo.org/actions/upload-artifact@v4 if: startsWith(github.ref, 'refs/tags/v')
with: run: |
name: TinyWeb-linux-x64 FILE=TinyWeb-linux-x64
path: TinyWeb-linux-x64.gz TAG="${{ github.ref_name }}"
curl -X POST "${{ forgejo.url }}/api/v1/repos/${{ github.repository }}/releases/$TAG/assets" \
-H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \
-F "attachment=@$FILE"