Compare commits
No commits in common. "main" and "v1.1.3" have entirely different histories.
1 changed files with 11 additions and 23 deletions
|
|
@ -9,7 +9,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
name: Run tests
|
name: Test
|
||||||
runs-on: native
|
runs-on: native
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
@ -25,10 +25,11 @@ jobs:
|
||||||
include:
|
include:
|
||||||
- package: x86_64-linux
|
- package: x86_64-linux
|
||||||
target: x86_64-unknown-linux-gnu
|
target: x86_64-unknown-linux-gnu
|
||||||
# - package: x86_64-linux-musl
|
- package: x86_64-linux-musl
|
||||||
# target: x86_64-unknown-linux-musl
|
target: x86_64-unknown-linux-musl
|
||||||
# - package: aarch64-linux
|
- package: aarch64-linux
|
||||||
# target: aarch64-unknown-linux-gnu
|
target: aarch64-unknown-linux-gnu
|
||||||
|
# TODO: need macOS runners for these
|
||||||
# - package: default
|
# - package: default
|
||||||
# target: x86_64-apple-darwin
|
# target: x86_64-apple-darwin
|
||||||
# system: x86_64-darwin
|
# system: x86_64-darwin
|
||||||
|
|
@ -69,21 +70,8 @@ jobs:
|
||||||
ls -la release/
|
ls -la release/
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
run: |
|
uses: actions/forgejo-release@v2
|
||||||
tag="${GITHUB_REF#refs/tags/}"
|
with:
|
||||||
curl -X POST \
|
direction: upload
|
||||||
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
release-dir: release
|
||||||
-H "Content-Type: application/json" \
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
-d "{\"tag_name\": \"${tag}\", \"name\": \"${tag}\"}" \
|
|
||||||
"${{ env.GITHUB_SERVER_URL }}/api/v1/repos/${{ github.repository }}/releases"
|
|
||||||
release_id=$(curl -s \
|
|
||||||
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
|
||||||
"${{ env.GITHUB_SERVER_URL }}/api/v1/repos/${{ github.repository }}/releases/tags/${tag}" \
|
|
||||||
| jq -r '.id')
|
|
||||||
for file in release/*; do
|
|
||||||
curl -X POST \
|
|
||||||
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
|
||||||
-H "Content-Type: application/octet-stream" \
|
|
||||||
--data-binary "@${file}" \
|
|
||||||
"${{ env.GITHUB_SERVER_URL }}/api/v1/repos/${{ github.repository }}/releases/${release_id}/assets?name=$(basename $file)"
|
|
||||||
done
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue