Skip to content

Commit 9faf74f

Browse files
committed
ci: publish to nuget.org and upload only zips to GitHub releases
1 parent c2829c4 commit 9faf74f

2 files changed

Lines changed: 31 additions & 14 deletions

File tree

.github/workflows/release.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ jobs:
1414
matrix:
1515
include:
1616
- rid: linux-x64
17-
os: ubuntu-latest
17+
os: ubuntu-24.04
1818
- rid: linux-arm64
1919
os: ubuntu-24.04-arm
2020
- rid: osx-x64
21-
os: macos-latest
21+
os: macos-13
2222
- rid: osx-arm64
23-
os: macos-latest
23+
os: macos-15
2424
- rid: win-x64
25-
os: windows-latest
25+
os: windows-2025
2626
- rid: win-arm64
27-
os: windows-latest
27+
os: windows-2025
2828

2929
runs-on: ${{ matrix.os }}
3030

@@ -101,20 +101,20 @@ jobs:
101101
- name: Pack root dotnet tool package
102102
run: dotnet pack funURL.CLI -c Release -p:Version=${{ steps.pkg_version.outputs.version }} -o nupkgs
103103

104-
# - name: Push to NuGet
105-
# run: |
106-
# for pkg in artifacts/nupkg-*/*.nupkg nupkgs/*.nupkg; do
107-
# dotnet nuget push "$pkg" \
108-
# --api-key ${{ secrets.NUGET_API_KEY }} \
109-
# --source https://api.nuget.org/v3/index.json \
110-
# --skip-duplicate
111-
# done
104+
- name: Push to NuGet
105+
run: |
106+
for pkg in nupkgs/*.nupkg; do
107+
dotnet nuget push "$pkg" \
108+
--api-key ${{ secrets.NUGET_API_KEY }} \
109+
--source https://api.nuget.org/v3/index.json \
110+
--skip-duplicate
111+
done
112112
113113
- name: Create release
114114
env:
115115
GH_TOKEN: ${{ github.token }}
116116
run: >
117117
gh release create "${{ steps.version.outputs.tag }}"
118-
artifacts/*
118+
artifacts/*.zip
119119
--title "${{ steps.version.outputs.tag }}"
120120
--generate-notes

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,25 @@ funURL is a command-line tool designed as a Swiss Army knife for URLs. It takes
1010

1111
## Installation
1212

13+
### .NET Tool
14+
15+
```bash
16+
dotnet tool install --global funurl
17+
```
18+
19+
### Binary Download
20+
1321
Download the latest binary for your platform from the [Releases](https://github.com/HappyHackingSpace/funURL/releases) page.
1422

23+
| Platform | File |
24+
|----------|------|
25+
| Linux x64 | `funurl-linux-x64.zip` |
26+
| Linux ARM64 | `funurl-linux-arm64.zip` |
27+
| macOS x64 | `funurl-osx-x64.zip` |
28+
| macOS ARM64 (Apple Silicon) | `funurl-osx-arm64.zip` |
29+
| Windows x64 | `funurl-win-x64.zip` |
30+
| Windows ARM64 | `funurl-win-arm64.zip` |
31+
1532
## Features
1633

1734
### URL Parsing

0 commit comments

Comments
 (0)