|
38 | 38 | set-image: |
39 | 39 | needs: [ check-synchronization ] |
40 | 40 | if: needs.check-synchronization.outputs.checks_passed == 'true' |
41 | | - runs-on: ubuntu-latest |
| 41 | + runs-on: ubuntu-latest-m |
42 | 42 | outputs: |
43 | 43 | IMAGE: ${{ steps.set_image.outputs.IMAGE }} |
44 | 44 | steps: |
|
50 | 50 |
|
51 | 51 | publish-crates: |
52 | 52 | needs: set-image |
53 | | - runs-on: ubuntu-latest |
| 53 | + runs-on: ubuntu-latest-m |
54 | 54 | environment: release |
55 | 55 | env: |
56 | 56 | PGP_KMS_KEY: ${{ secrets.PGP_KMS_SIGN_COMMITS_KEY }} |
|
94 | 94 | with: |
95 | 95 | ref: ${{ steps.derive_branch.outputs.STABLE_BRANCH }} |
96 | 96 | fetch-depth: 0 |
| 97 | + persist-credentials: false |
97 | 98 |
|
98 | 99 | - name: Import GPG keys |
99 | 100 | shell: bash |
@@ -145,7 +146,7 @@ jobs: |
145 | 146 | - name: Install parity-publish |
146 | 147 | run: | |
147 | 148 | sudo apt-get update && sudo apt-get install -y --no-install-recommends libcurl4-openssl-dev pkg-config |
148 | | - cargo install parity-publish@0.10.10 --locked -q |
| 149 | + cargo install parity-publish@0.10.11 --locked -q |
149 | 150 |
|
150 | 151 | - name: Run parity-publish plan |
151 | 152 | run: | |
@@ -227,14 +228,6 @@ jobs: |
227 | 228 | echo "No changes to commit" |
228 | 229 | fi |
229 | 230 |
|
230 | | - - name: Push release branch |
231 | | - env: |
232 | | - CRATES_RELEASE_BRANCH: ${{ steps.derive_branch.outputs.CRATES_RELEASE_BRANCH }} |
233 | | - run: | |
234 | | - echo "Pushing branch $CRATES_RELEASE_BRANCH..." |
235 | | - git push origin "$CRATES_RELEASE_BRANCH" |
236 | | - echo "Successfully pushed $CRATES_RELEASE_BRANCH" |
237 | | -
|
238 | 231 | - name: Configure cargo registry |
239 | 232 | shell: bash |
240 | 233 | env: |
@@ -272,3 +265,22 @@ jobs: |
272 | 265 | parity-publish apply -p |
273 | 266 | echo "Crates published successfully to $REGISTRY!" |
274 | 267 | fi |
| 268 | +
|
| 269 | + - name: Generate token for paritytech/polkadot-sdk |
| 270 | + id: generate_write_token |
| 271 | + uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1 |
| 272 | + with: |
| 273 | + app-id: ${{ vars.POLKADOT_SDK_RELEASE_RW_APP_ID }} |
| 274 | + private-key: ${{ secrets.POLKADOT_SDK_RELEASE_RW_APP_KEY }} |
| 275 | + owner: paritytech |
| 276 | + repositories: polkadot-sdk |
| 277 | + |
| 278 | + - name: Push release branch to paritytech |
| 279 | + env: |
| 280 | + CRATES_RELEASE_BRANCH: ${{ steps.derive_branch.outputs.CRATES_RELEASE_BRANCH }} |
| 281 | + TOKEN: ${{ steps.generate_write_token.outputs.token }} |
| 282 | + run: | |
| 283 | + echo "Pushing branch $CRATES_RELEASE_BRANCH to paritytech/polkadot-sdk..." |
| 284 | + git remote set-url origin "https://x-access-token:${TOKEN}@github.com/paritytech/polkadot-sdk.git" |
| 285 | + git push origin "$CRATES_RELEASE_BRANCH" |
| 286 | + echo "Successfully pushed $CRATES_RELEASE_BRANCH to paritytech/polkadot-sdk" |
0 commit comments