Skip to content

Commit 0218542

Browse files
committed
modify workflows to publish aaosc packages
1 parent c0888f5 commit 0218542

6 files changed

Lines changed: 17 additions & 324 deletions

File tree

.github/workflows/build.yml

Lines changed: 17 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -30,27 +30,9 @@ jobs:
3030
fail-fast: false
3131
matrix:
3232
os: [ubuntu-22.04]
33-
pg_major: [16, 15, 14, 13, 12]
33+
pg_major: [14]
3434
config: [Release]
3535
test_tfm: [net8.0]
36-
include:
37-
- os: ubuntu-22.04
38-
pg_major: 16
39-
config: Debug
40-
test_tfm: net8.0
41-
- os: macos-14
42-
pg_major: 16
43-
config: Release
44-
test_tfm: net8.0
45-
- os: windows-2022
46-
pg_major: 16
47-
config: Release
48-
test_tfm: net8.0
49-
# - os: ubuntu-22.04
50-
# pg_major: 17
51-
# config: Release
52-
# test_tfm: net8.0
53-
# pg_prerelease: 'PG Prerelease'
5436

5537
outputs:
5638
is_release: ${{ steps.analyze_tag.outputs.is_release }}
@@ -306,19 +288,19 @@ jobs:
306288
psql -c "CREATE USER npgsql_tests_scram SUPERUSER PASSWORD 'npgsql_tests_scram'" postgres
307289
308290
# TODO: Once test/Npgsql.Specification.Tests work, switch to just testing on the solution
309-
- name: Test
310-
run: |
311-
dotnet test -c ${{ matrix.config }} -f ${{ matrix.test_tfm }} test/Npgsql.Tests --logger "GitHubActions;report-warnings=false"
312-
dotnet test -c ${{ matrix.config }} -f ${{ matrix.test_tfm }} test/Npgsql.DependencyInjection.Tests --logger "GitHubActions;report-warnings=false"
313-
shell: bash
314-
315-
- name: Test Plugins
316-
if: "!startsWith(matrix.os, 'macos')"
317-
run: |
318-
if [ -z "${{ matrix.pg_prerelease }}" ]; then
319-
dotnet test -c ${{ matrix.config }} -f ${{ matrix.test_tfm }} test/Npgsql.PluginTests --logger "GitHubActions;report-warnings=false"
320-
fi
321-
shell: bash
291+
# - name: Test
292+
# run: |
293+
# dotnet test -c ${{ matrix.config }} -f ${{ matrix.test_tfm }} test/Npgsql.Tests --logger "GitHubActions;report-warnings=false"
294+
# dotnet test -c ${{ matrix.config }} -f ${{ matrix.test_tfm }} test/Npgsql.DependencyInjection.Tests --logger "GitHubActions;report-warnings=false"
295+
# shell: bash
296+
297+
# - name: Test Plugins
298+
# if: "!startsWith(matrix.os, 'macos')"
299+
# run: |
300+
# if [ -z "${{ matrix.pg_prerelease }}" ]; then
301+
# dotnet test -c ${{ matrix.config }} -f ${{ matrix.test_tfm }} test/Npgsql.PluginTests --logger "GitHubActions;report-warnings=false"
302+
# fi
303+
# shell: bash
322304

323305
- id: analyze_tag
324306
name: Analyze tag
@@ -378,7 +360,7 @@ jobs:
378360
release:
379361
needs: build
380362
runs-on: ubuntu-22.04
381-
if: github.event_name == 'push' && startsWith(github.repository, 'npgsql/') && needs.build.outputs.is_release == 'true'
363+
if: github.event_name == 'push' && needs.build.outputs.is_release == 'true'
382364
environment: nuget.org
383365

384366
steps:
@@ -401,6 +383,6 @@ jobs:
401383

402384
# TODO: Create a release
403385

404-
- name: Publish to nuget.org
405-
run: dotnet nuget push "*.nupkg" --api-key ${{ secrets.NUGET_ORG_API_KEY }} --source https://api.nuget.org/v3/index.json
386+
- name: Publish to GitHub registry
387+
run: dotnet nuget push "*.nupkg" --api-key ${{ secrets.GITHUB_TOKEN }} --source https://nuget.pkg.github.com/AAOSC/index.json --skip-duplicate --no-symbols
406388
working-directory: nupkgs

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 93 deletions
This file was deleted.

.github/workflows/native-aot.yml

Lines changed: 0 additions & 134 deletions
This file was deleted.

.github/workflows/rich-code-nav.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/trigger-doc-build.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

Directory.Build.props

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<PropertyGroup>
33
<VersionPrefix>9.0.0-preview.1</VersionPrefix>
44
<LangVersion>latest</LangVersion>
5-
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
65
<Nullable>enable</Nullable>
76
<AnalysisLevel>latest</AnalysisLevel>
87
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>

0 commit comments

Comments
 (0)