Skip to content

Commit 851be39

Browse files
committed
Improve workflows
- Add check that generator has not produced any changes during release - Stop publishing to maven central as the generator code itself is not very important
1 parent 76b47d1 commit 851be39

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

.github/workflows/publish.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@ jobs:
1414
uses: actions/checkout@v2
1515
with:
1616
fetch-depth: 0 # We want all history so we can get all commits since previous git tag
17-
- name: Setup java
18-
uses: actions/setup-java@v2
19-
with:
20-
java-version: 17
21-
distribution: 'zulu'
22-
cache: 'maven'
23-
server-id: ossrh
24-
server-username: OSSRH_USERNAME # env variable for username in deploy
25-
server-password: OSSRH_PASSWORD # env variable for password in deploy
26-
gpg-private-key: ${{ secrets.OSSRH_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
27-
gpg-passphrase: OSSRH_GPG_PASSPHRASE # env variable for GPG private key passphrase
28-
- name: Deploy to Maven Central
29-
env:
30-
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
31-
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
32-
OSSRH_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_PASSPHRASE }}
33-
run: ./mvnw -B deploy -Pdeploy
17+
# - name: Setup java
18+
# uses: actions/setup-java@v2
19+
# with:
20+
# java-version: 17
21+
# distribution: 'zulu'
22+
# cache: 'maven'
23+
# server-id: ossrh
24+
# server-username: OSSRH_USERNAME # env variable for username in deploy
25+
# server-password: OSSRH_PASSWORD # env variable for password in deploy
26+
# gpg-private-key: ${{ secrets.OSSRH_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
27+
# gpg-passphrase: OSSRH_GPG_PASSPHRASE # env variable for GPG private key passphrase
28+
# - name: Deploy to Maven Central
29+
# env:
30+
# OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
31+
# OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
32+
# OSSRH_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_PASSPHRASE }}
33+
# run: ./mvnw -B deploy -Pdeploy
3434
- name: Create release notes
3535
if: startsWith(github.ref, 'refs/tags/')
3636
run: |

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ jobs:
6060
run: ./mvnw -B package -Pcli
6161
- name: Update Open API
6262
run: ./scripts/patch-open-api.sh
63+
- name: Check generator results
64+
run: |
65+
git status --porcelain
66+
git diff --exit-code
6367
- name: Commit and tag
6468
run: |
6569
git config user.name sonallux

0 commit comments

Comments
 (0)