Skip to content

Commit

Permalink
🤖 (CD) remove release notes extraction as not used
Browse files Browse the repository at this point in the history
  • Loading branch information
MorganKryze committed Mar 22, 2024
1 parent d2eb07f commit cc5788b
Showing 1 changed file with 25 additions and 28 deletions.
53 changes: 25 additions & 28 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,33 @@ name: Publish package
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+" # match for vx.x.x tags
- "v[0-9]+.[0-9]+.[0-9]+-alpha+" # match for vx.x.x-alpha tags
- "v[0-9]+.[0-9]+.[0-9]+-alpha.+" # match for vx.x.x-alpha.x tags
- "v[0-9]+.[0-9]+.[0-9]+-beta+" # match for vx.x.x-beta tags
- "v[0-9]+.[0-9]+.[0-9]+-beta.+" # match for vx.x.x-beta.x tags
- "v[0-9]+.[0-9]+.[0-9]+-rc+" # match for vx.x.x-rc tags
- "v[0-9]+.[0-9]+.[0-9]+-rc.+" # match for vx.x.x-rc.x tags
- 'v[0-9]+.[0-9]+.[0-9]+' # match for vx.x.x tags
- 'v[0-9]+.[0-9]+.[0-9]+-alpha+' # match for vx.x.x-alpha tags
- 'v[0-9]+.[0-9]+.[0-9]+-alpha.+' # match for vx.x.x-alpha.x tags
- 'v[0-9]+.[0-9]+.[0-9]+-beta+' # match for vx.x.x-beta tags
- 'v[0-9]+.[0-9]+.[0-9]+-beta.+' # match for vx.x.x-beta.x tags
- 'v[0-9]+.[0-9]+.[0-9]+-rc+' # match for vx.x.x-rc tags
- 'v[0-9]+.[0-9]+.[0-9]+-rc.+' # match for vx.x.x-rc.x tags

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Extract release notes
run: |
git log --pretty=format:'%d %s' ${GITHUB_REF} | perl -pe 's| \(.*tag: v(\d+.\d+.\d+(-preview\d{3})?)(, .*?)*\)|\n## \1\n|g' > RELEASE-NOTES
- name: Set VERSION variable from tag
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
- name: Pack library
run: dotnet pack src/ConsoleAppVisuals/ConsoleAppVisuals.csproj /p:Version=${VERSION} /p:ContinuousIntegrationBuild=true --output .
env:
GITHUB_ACTIONS: true
GITHUB_ACTION: 'publish'
- name: Push to GitHub Packages
run: dotnet nuget push ConsoleAppVisuals.${VERSION}.nupkg --source https://nuget.pkg.github.com/MorganKryze/index.json --api-key ${GITHUB_TOKEN}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Push to NuGet.org
run: dotnet nuget push ConsoleAppVisuals.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}}
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set VERSION variable from tag
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
- name: Pack library
run: dotnet pack src/ConsoleAppVisuals/ConsoleAppVisuals.csproj /p:Version=${VERSION} /p:ContinuousIntegrationBuild=true --output .
env:
GITHUB_ACTIONS: true
GITHUB_ACTION: 'publish'
- name: Push to GitHub Packages
run: dotnet nuget push ConsoleAppVisuals.${VERSION}.nupkg --source https://nuget.pkg.github.com/MorganKryze/index.json --api-key ${GITHUB_TOKEN}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Push to NuGet.org
run: dotnet nuget push ConsoleAppVisuals.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}}

0 comments on commit cc5788b

Please sign in to comment.