Skip to content

Commit 37d2b95

Browse files
committed
Update CI
1 parent 20016fe commit 37d2b95

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
sonarqube:
3030
name: sonarqube
3131
runs-on: windows-latest
32-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
32+
needs: test
3333
steps:
3434
- name: Set up JDK 17
3535
uses: actions/setup-java@v4

.github/workflows/publish.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,13 @@ jobs:
6767
runs-on: ubuntu-latest
6868
needs: sonarqube
6969
steps:
70-
- name: Download build result
71-
uses: actions/download-artifact@v4
72-
with:
73-
name: build
70+
- name: Extract release notes
71+
run: |
72+
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
7473
- name: Set VERSION variable from tag
7574
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
7675
- name: Pack
77-
run: dotnet pack --configuration Release /p:Version=${VERSION} --no-build --output .
76+
run: dotnet pack --configuration Release /p:Version=${VERSION} --output .
7877
- name: Push nuget to nuget.org
7978
run: dotnet nuget push RxTelegram.Bot.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json
8079
- name: Publish release

0 commit comments

Comments
 (0)