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:
|
||||
test:
|
||||
name: Run tests
|
||||
name: Test
|
||||
runs-on: native
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
|
@ -25,10 +25,11 @@ jobs:
|
|||
include:
|
||||
- package: x86_64-linux
|
||||
target: x86_64-unknown-linux-gnu
|
||||
# - package: x86_64-linux-musl
|
||||
# target: x86_64-unknown-linux-musl
|
||||
# - package: aarch64-linux
|
||||
# target: aarch64-unknown-linux-gnu
|
||||
- package: x86_64-linux-musl
|
||||
target: x86_64-unknown-linux-musl
|
||||
- package: aarch64-linux
|
||||
target: aarch64-unknown-linux-gnu
|
||||
# TODO: need macOS runners for these
|
||||
# - package: default
|
||||
# target: x86_64-apple-darwin
|
||||
# system: x86_64-darwin
|
||||
|
|
@ -69,21 +70,8 @@ jobs:
|
|||
ls -la release/
|
||||
|
||||
- name: Create release
|
||||
run: |
|
||||
tag="${GITHUB_REF#refs/tags/}"
|
||||
curl -X POST \
|
||||
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-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
|
||||
uses: actions/forgejo-release@v2
|
||||
with:
|
||||
direction: upload
|
||||
release-dir: release
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue