Skip to content

Commit

Permalink
Simplify CI and NuGet publish
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbayley committed Apr 17, 2024
1 parent 47a6533 commit e5f03b8
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 58 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/staging.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Staging
name: CI

on:
push:
Expand All @@ -13,7 +13,6 @@ defaults:
jobs:
ci:
name: CI
environment: Staging
runs-on: Ubuntu-Latest

steps:
Expand Down
53 changes: 0 additions & 53 deletions .github/workflows/production.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish To NuGet Gallery

on:
push:
branches:
- 'main'

defaults:
run:
shell: pwsh

jobs:
publish:
name: Publish To NuGet Gallery
runs-on: Ubuntu-Latest

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Publish
run: dotnet publish ./src -c Release

- name: Push
run: |
dotnet nuget push src/bin/Release/*.nupkg `
--api-key ${{ secrets.NUGET_KEY }} `
--source "https://api.nuget.org/v3/index.json" `
--skip-duplicate
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@

[![Open in Dev Containers](https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/gazellekit/gazelle)
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg)](https://github.com/gazellekit/gazelle/blob/main/CODE_OF_CONDUCT.md)
[![License: AGPL-3.0](https://img.shields.io/badge/License-AGPL--3.0-00add8)](https://choosealicense.com/licenses/agpl-3.0/)

[![Staging](https://github.com/gazellekit/gazelle/actions/workflows/staging.yml/badge.svg)](https://github.com/gazellekit/gazelle/actions/workflows/staging.yml)
[![Production](https://github.com/gazellekit/gazelle/actions/workflows/production.yml/badge.svg)](https://github.com/gazellekit/gazelle/actions/workflows/production.yml)
[![CI](https://github.com/gazellekit/gazelle/actions/workflows/ci.yml/badge.svg)](https://github.com/gazellekit/gazelle/actions/workflows/ci.yml)
[![License: AGPL-3.0](https://img.shields.io/badge/License-AGPL--3.0-00add8)](https://choosealicense.com/licenses/agpl-3.0/)

[![.NET](https://img.shields.io/badge/.NET-8.0-8a2be2)](https://dotnet.microsoft.com)
</div>
Expand Down

0 comments on commit e5f03b8

Please sign in to comment.