This commit is contained in:
parent
ac088cc291
commit
c8b9364f32
1 changed files with 8 additions and 6 deletions
|
|
@ -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"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue