v0.2.0 #2
@@ -61,8 +61,10 @@ jobs:
|
|||||||
tar czf "${{ matrix.archive }}" "${{ matrix.binary }}"
|
tar czf "${{ matrix.archive }}" "${{ matrix.binary }}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload to release
|
||||||
uses: actions/upload-artifact@v3
|
run: |
|
||||||
with:
|
curl --fail -X POST \
|
||||||
name: ${{ matrix.archive }}
|
-H "Authorization: Bearer ${{ secrets.GITEA_TOKEN }}" \
|
||||||
path: target/${{ matrix.target }}/release/${{ matrix.archive }}
|
-H "Content-Type: application/octet-stream" \
|
||||||
|
--data-binary @"target/${{ matrix.target }}/release/${{ matrix.archive }}" \
|
||||||
|
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/releases/${{ github.event.release.id }}/assets?name=${{ matrix.archive }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user