-
Notifications
You must be signed in to change notification settings - Fork 21
chore: Fix release job by doing all builds in step 1 and only download and publish in subsequent steps #448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 8 commits
95d66a7
4801cd3
c2dd73f
5cb23a7
aee7625
d6c497e
edb38f2
ef90683
b91c5b8
a60d778
147f0d3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| name: Release | ||
| name: Release (Remember manual steps) | ||
| on: workflow_dispatch | ||
| jobs: | ||
| release: | ||
|
|
@@ -23,10 +23,29 @@ jobs: | |
| uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e | ||
| with: | ||
| node-version: 18.x | ||
| - uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b | ||
| name: Setup Java | ||
| with: | ||
| distribution: temurin | ||
| java-version: 11.x | ||
| - uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 | ||
| name: Setup Python | ||
| with: | ||
| python-version: 3.x | ||
| - uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 | ||
| name: Setup .NET | ||
| with: | ||
| dotnet-version: 9.0.x | ||
| - uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b | ||
| name: Setup Go | ||
| with: | ||
| go-version: ^1.16.0 | ||
| - name: Install dependencies | ||
| run: yarn install --check-files --frozen-lockfile | ||
| - name: release | ||
| run: npx projen release | ||
| run: | | ||
| unset CI | ||
oarbusi marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| npx projen release | ||
| - name: Backup artifact permissions | ||
| run: cd dist && getfacl -R . > permissions-backup.acl | ||
| continue-on-error: true | ||
|
|
@@ -55,16 +74,6 @@ jobs: | |
| - name: Restore build artifact permissions | ||
| run: cd dist && setfacl --restore=permissions-backup.acl | ||
| continue-on-error: true | ||
| - name: Checkout | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | ||
| with: | ||
| path: .repo | ||
| - name: Install Dependencies | ||
| run: cd .repo && yarn install --check-files --frozen-lockfile | ||
| - name: Create js artifact | ||
| run: cd .repo && npx projen compile && npx projen package:js | ||
| - name: Collect js Artifact | ||
| run: mv .repo/dist/js dist/js | ||
| - name: Release | ||
| env: | ||
| NPM_DIST_TAG: latest | ||
|
|
@@ -105,16 +114,6 @@ jobs: | |
| - name: Restore build artifact permissions | ||
| run: cd dist && setfacl --restore=permissions-backup.acl | ||
| continue-on-error: true | ||
| - name: Checkout | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | ||
| with: | ||
| path: .repo | ||
| - name: Install Dependencies | ||
| run: cd .repo && yarn install --check-files --frozen-lockfile | ||
| - name: Create java artifact | ||
| run: cd .repo && npx projen compile && npx projen package:java | ||
| - name: Collect java Artifact | ||
| run: mv .repo/dist/java dist/java | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. as we do some move files/directories, have you been able to check that this change works and releases are done correctly?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, see here.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nice! |
||
| - name: Release | ||
| env: | ||
| MAVEN_GPG_PRIVATE_KEY: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} | ||
|
|
@@ -156,16 +155,6 @@ jobs: | |
| - name: Restore build artifact permissions | ||
| run: cd dist && setfacl --restore=permissions-backup.acl | ||
| continue-on-error: true | ||
| - name: Checkout | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | ||
| with: | ||
| path: .repo | ||
| - name: Install Dependencies | ||
| run: cd .repo && yarn install --check-files --frozen-lockfile | ||
| - name: Create python artifact | ||
| run: cd .repo && npx projen compile && npx projen package:python | ||
| - name: Collect python Artifact | ||
| run: mv .repo/dist/python dist/python | ||
| - name: Release | ||
| env: | ||
| TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }} | ||
|
|
@@ -204,21 +193,6 @@ jobs: | |
| - name: Restore build artifact permissions | ||
| run: cd dist && setfacl --restore=permissions-backup.acl | ||
| continue-on-error: true | ||
| - name: Checkout | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | ||
| with: | ||
| path: .repo | ||
| fetch-depth: 0 | ||
| - name: Install Dependencies | ||
| run: cd .repo && yarn install --check-files --frozen-lockfile | ||
| - name: Create dotnet artifact | ||
| run: | | ||
| cd .repo | ||
| npx projen bump | ||
| npx projen compile | ||
| npx projen package:dotnet | ||
| - name: Collect dotnet Artifact | ||
| run: mv .repo/dist/dotnet dist/dotnet | ||
| - name: Extract Version | ||
| id: extract-version | ||
| run: echo "VERSION=$(cat dist/version.txt)" >> "${GITHUB_OUTPUT}" | ||
|
|
@@ -270,16 +244,6 @@ jobs: | |
| - name: Restore build artifact permissions | ||
| run: cd dist && setfacl --restore=permissions-backup.acl | ||
| continue-on-error: true | ||
| - name: Checkout | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | ||
| with: | ||
| path: .repo | ||
| - name: Install Dependencies | ||
| run: cd .repo && yarn install --check-files --frozen-lockfile | ||
| - name: Create go artifact | ||
| run: cd .repo && npx projen compile && npx projen package:go | ||
| - name: Collect go Artifact | ||
| run: mv .repo/dist/go dist/go | ||
| - name: Release | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GO_GITHUB_TOKEN }} | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.