Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasweimann committed Aug 2, 2024
1 parent 20016fe commit 37d2b95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
sonarqube:
name: sonarqube
runs-on: windows-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
needs: test
steps:
- name: Set up JDK 17
uses: actions/setup-java@v4
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,13 @@ jobs:
runs-on: ubuntu-latest
needs: sonarqube
steps:
- name: Download build result
uses: actions/download-artifact@v4
with:
name: build
- 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
run: dotnet pack --configuration Release /p:Version=${VERSION} --no-build --output .
run: dotnet pack --configuration Release /p:Version=${VERSION} --output .
- name: Push nuget to nuget.org
run: dotnet nuget push RxTelegram.Bot.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json
- name: Publish release
Expand Down

0 comments on commit 37d2b95

Please sign in to comment.