Skip to content

Commit

Permalink
Adjust Publishing (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
wbaldoumas authored Aug 28, 2023
1 parent eb64ec8 commit d059f20
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,34 +62,34 @@ jobs:

- name: 🎁 pack nuget
if: env.VERSION_CHANGED == '1'
run: dotnet pack src/LazyCart/LazyCart.csproj --configuration Release --include-symbols /p:SymbolPackageFormat=snupkg /p:ContinuousIntegrationBuild=true /p:Version=${VERSION} --output .
run: dotnet pack src/LazyCart/LazyCart.csproj --configuration Release --include-symbols /p:SymbolPackageFormat=snupkg /p:ContinuousIntegrationBuild=true /p:Version="${{ env.VERSION }}" --output .

- name: 💌 publish nuget
if: env.VERSION_CHANGED == '1'
run: dotnet nuget push *.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_KEY} --skip-duplicate
env:
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}

- name: 🔨 set up python
if: env.VERSION_CHANGED == '1'
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: 📢 extract release notes
if: env.VERSION_CHANGED == '1'
run: |
python scripts/extract_changelog.py CHANGELOG.md latest_release.md
- name: 📑 create github release
if: env.VERSION_CHANGED == '1'
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ env.VERSION }}
release_name: Release v${{ env.VERSION }}
draft: false
prerelease: false
body_path: latest_release.md
# - name: 🔨 set up python
# if: env.VERSION_CHANGED == '1'
# uses: actions/setup-python@v4
# with:
# python-version: '3.x'

# - name: 📢 extract release notes
# if: env.VERSION_CHANGED == '1'
# run: |
# python scripts/extract_changelog.py CHANGELOG.md latest_release.md

# - name: 📑 create github release
# if: env.VERSION_CHANGED == '1'
# id: create_release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: v${{ env.VERSION }}
# release_name: Release v${{ env.VERSION }}
# draft: false
# prerelease: false
# body_path: latest_release.md
2 changes: 1 addition & 1 deletion src/LazyCart/LazyCart.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

<!-- NuGet Packaging Properties -->
<PropertyGroup>
<Version>0.4.2</Version>
<Version>0.4.3</Version>
<Authors>William Baldoumas</Authors>
<Description>A tiny library to lazily generate the Nth cartesian product.</Description>
<Copyright>Copyright ©2023 William Baldoumas</Copyright>
Expand Down

0 comments on commit d059f20

Please sign in to comment.