This commit is contained in:
parent
ac088cc291
commit
c8b9364f32
1 changed files with 8 additions and 6 deletions
|
|
@ -30,11 +30,13 @@ jobs:
|
|||
run: |
|
||||
cp dist/TinyWeb TinyWeb-linux-x64
|
||||
chmod +x TinyWeb-linux-x64
|
||||
gzip -k TinyWeb-linux-x64
|
||||
|
||||
- name: Upload artifact
|
||||
uses: https://code.forgejo.org/actions/upload-artifact@v4
|
||||
with:
|
||||
name: TinyWeb-linux-x64
|
||||
path: TinyWeb-linux-x64.gz
|
||||
- name: Upload release
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
run: |
|
||||
FILE=TinyWeb-linux-x64
|
||||
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