This commit is contained in:
parent
b4c358238d
commit
6347dce86c
1 changed files with 10 additions and 0 deletions
|
|
@ -32,3 +32,13 @@ jobs:
|
|||
chmod +x TinyWeb-linux-x64
|
||||
ls -la TinyWeb-linux-x64
|
||||
|
||||
- name: Upload to Release
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
run: |
|
||||
FILE=TinyWeb-linux-x64
|
||||
TAG="${{ github.ref_name }}"
|
||||
REPO="${{ github.repository }}"
|
||||
curl -X POST "https://git.derickphan.com/api/v1/repos/$REPO/releases/$TAG/assets" \
|
||||
-H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \
|
||||
-F "attachment=@$FILE"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue