diff --git a/.github/settings.yml b/.github/settings.yml index dcd460e..9633984 100644 --- a/.github/settings.yml +++ b/.github/settings.yml @@ -8,51 +8,51 @@ repository: labels: - name: dependencies - color: 0052CC + color: '0052CC' description: - name: bug - color: D73A4A + color: 'D73A4A' description: - name: documentation - color: 0075CA + color: '0075CA' description: - name: duplicate - color: CFD3D7 + color: 'CFD3D7' description: - name: enhancement - color: A2EEEF + color: 'A2EEEF' description: - name: good first issue - color: 7057FF + color: '7057FF' description: - name: help wanted - color: 008672 + color: '008672' description: - name: invalid - color: E4E669 + color: 'E4E669' description: - name: question - color: D876E3 + color: 'D876E3' description: - name: wontfix - color: FFFFFF + color: 'FFFFFF' description: - name: vulnerability - color: D1260F + color: 'D1260F' description: - name: sync - color: 6E81A3 + color: '6E81A3' description: branches: @@ -61,7 +61,7 @@ branches: required_pull_request_reviews: null required_status_checks: strict: false - contexts: ['Build, Test & Pack (Windows)'] + contexts: ['Build, Test & Pack'] enforce_admins: false required_linear_history: false restrictions: null diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..256bb5c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ +name: CI + +on: + push: + branches: + - "main" + tags: + - "v*" + +jobs: + build: + name: CI Build + uses: ./.github/workflows/build.yml + secrets: inherit + + github: + name: Deploy to GitHub + needs: [build] + runs-on: ubuntu-24.04 + steps: + - name: Download artifacts + uses: actions/download-artifact@v4 + with: + name: nupkgs + - name: Push to pkg.github.com + run: dotnet nuget push "**/*.nupkg" -s https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json -k ${{ secrets.GH_FULL_PAT }} --skip-duplicate + + nuget: + name: Deploy to NuGet + needs: [build] + if: startsWith(github.ref, 'refs/tags/v') + runs-on: ubuntu-24.04 + steps: + - name: Download artifacts + uses: actions/download-artifact@v4 + with: + name: nupkgs + - name: Push to nuget.org + run: dotnet nuget push "**/*.nupkg" -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_DEPLOY_KEY }}