@@ -3,20 +3,17 @@ name: Release Upgradeable
33on :
44 workflow_dispatch : {}
55
6- env :
7- UPGRADEABLE_REPO : OpenZeppelin/openzeppelin-contracts-upgradeable
8-
96jobs :
107 state :
118 name : Check state
129 permissions :
1310 pull-requests : read
14- if : ${{ github.repository == 'OpenZeppelin/openzeppelin-contracts' }}
11+ if : ${{ !endsWith( github.repository, '-upgradeable') }}
1512 runs-on : ubuntu-latest
1613 steps :
1714 - uses : actions/checkout@v6
1815 with :
19- repository : ${{ env.UPGRADEABLE_REPO }}
16+ repository : ${{ github.repository }}-upgradeable
2017 ref : ${{ github.ref }}
2118 - uses : actions/checkout@v6
2219 with :
3128 echo "commit=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
3229 - name : Check upgradeable
3330 id : check-upgradeable
34- run : bash lib/openzeppelin/ scripts/release/workflow/check-upgradeable.sh # TODO: remove path prefix when this is merged and the change are transpiled
31+ run : bash scripts/release/workflow/check-upgradeable.sh
3532 env :
3633 REFERENCE_COMMIT : ${{ steps.get-reference-commit.outputs.commit }}
3734 outputs :
5148 steps :
5249 - uses : actions/checkout@v6
5350 with :
54- repository : ${{ env.UPGRADEABLE_REPO }}
51+ repository : ${{ github.repository }}-upgradeable
5552 ref : ${{ github.ref }}
5653 - uses : actions/checkout@v6
5754 with :
@@ -69,18 +66,20 @@ jobs:
6966 with :
7067 name : ${{ github.ref_name }}
7168 path : ${{ steps.pack.outputs.tarball }}
72- - name : Publish
73- run : bash scripts/release/workflow/publish.sh
74- env :
75- TARBALL : ${{ steps.pack.outputs.tarball }}
76- TAG : ${{ steps.pack.outputs.tag }}
69+ # - name: Publish
70+ # run: bash scripts/release/workflow/publish.sh
71+ # env:
72+ # TARBALL: ${{ steps.pack.outputs.tarball }}
73+ # TAG: ${{ steps.pack.outputs.tag }}
7774 - name : Create Github Release
7875 uses : actions/github-script@v8
7976 env :
8077 PRERELEASE : ${{ needs.state.outputs.is_prerelease }}
78+ TARGET_COMMIT : ${{ github.ref }}
79+ REPO_SUFFIX : -upgradeable
8180 with :
8281 github-token : ${{ secrets.GH_TOKEN_UPGRADEABLE }}
83- script : await require('./lib/openzeppelin-contracts/ scripts/release/workflow/github-release.js')({ github, context }, '${{ env.UPGRADEABLE_REPO }}') # TODO: remove path prefix when this is merged and the change are transpiled
82+ script : await require('./scripts/release/workflow/github-release.js')({ github, context })
8483 outputs :
8584 tarball_name : ${{ steps.pack.outputs.tarball_name }}
8685
9089 runs-on : ubuntu-latest
9190 steps :
9291 - uses : actions/checkout@v6
92+ with :
93+ repository : ${{ github.repository }}-upgradeable
94+ ref : ${{ github.ref }}
9395 - name : Download tarball artifact
9496 id : artifact
9597 uses : actions/download-artifact@v6
0 commit comments