This commit is contained in:
parent
6347dce86c
commit
d454c0994c
1 changed files with 6 additions and 9 deletions
|
|
@ -30,15 +30,12 @@ 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
|
||||||
ls -la TinyWeb-linux-x64
|
|
||||||
|
|
||||||
- name: Upload to Release
|
- name: Create Release
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
run: |
|
uses: https://code.forgejo.org/actions/forgejo-release@v2
|
||||||
FILE=TinyWeb-linux-x64
|
with:
|
||||||
TAG="${{ github.ref_name }}"
|
direction: upload
|
||||||
REPO="${{ github.repository }}"
|
release-dir: .
|
||||||
curl -X POST "https://git.derickphan.com/api/v1/repos/$REPO/releases/$TAG/assets" \
|
override: true
|
||||||
-H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \
|
|
||||||
-F "attachment=@$FILE"
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue