refactor(ci): simplify CI workflow to Linux-only builds
Some checks failed
Release / Build and Publish (release) Failing after 21s
CI / Build (Linux) (push) Successful in 22s
Release / Build and Publish (push) Failing after 18s

Remove Windows and macOS build jobs from CI workflow since this is a Linux-specific MAUI implementation. Consolidate artifact uploads to single "nuget-packages" artifact.

Fix release workflow to use Gitea-specific variables (GITEA_REF, gitea.repository_owner) instead of GitHub equivalents, and use GITEATOKEN secret for package publishing.
This commit is contained in:
2026-01-29 23:29:51 -05:00
parent ade3a8a47d
commit 4d880e77d5
2 changed files with 4 additions and 56 deletions

View File

@@ -35,57 +35,5 @@ jobs:
- name: Upload NuGet packages - name: Upload NuGet packages
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: nuget-packages-linux name: nuget-packages
path: ./nupkg/*.nupkg
build-windows:
name: Build (Windows)
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Run tests
run: dotnet test --configuration Release --no-build --verbosity normal
continue-on-error: true
- name: Pack NuGet
run: dotnet pack --configuration Release --no-build -o ./nupkg
- name: Upload NuGet packages
uses: actions/upload-artifact@v3
with:
name: nuget-packages-windows
path: ./nupkg/*.nupkg
build-macos:
name: Build (macOS)
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Run tests
run: dotnet test --configuration Release --no-build --verbosity normal
continue-on-error: true
- name: Pack NuGet
run: dotnet pack --configuration Release --no-build -o ./nupkg
- name: Upload NuGet packages
uses: actions/upload-artifact@v3
with:
name: nuget-packages-macos
path: ./nupkg/*.nupkg path: ./nupkg/*.nupkg

View File

@@ -23,7 +23,7 @@ jobs:
- name: Get version from tag - name: Get version from tag
id: version id: version
run: | run: |
VERSION=${GITHUB_REF#refs/tags/v} VERSION=${GITEA_REF#refs/tags/v}
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
echo "Building version: $VERSION" echo "Building version: $VERSION"
@@ -50,8 +50,8 @@ jobs:
run: | run: |
for pkg in ./nupkg/*.nupkg; do for pkg in ./nupkg/*.nupkg; do
dotnet nuget push "$pkg" \ dotnet nuget push "$pkg" \
--api-key ${{ secrets.GITHUB_TOKEN }} \ --api-key ${{ secrets.GITEATOKEN }} \
--source https://git.marketally.com/api/packages/${{ github.repository_owner }}/nuget/index.json \ --source https://git.marketally.com/api/packages/${{ gitea.repository_owner }}/nuget/index.json \
--skip-duplicate --skip-duplicate
done done