Skip to content

Commit 58859cc

Browse files
committed
fix readme, publish draft, rm gitlab-ci
1 parent a151bc4 commit 58859cc

File tree

3 files changed

+36
-169
lines changed

3 files changed

+36
-169
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,31 @@ jobs:
136136
with:
137137
name: build-macos
138138
path: ./artifacts
139+
publish:
140+
name: Publish release
141+
runs-on: ubuntu-latest
142+
needs: [build-test-linux, build-macos]
143+
permissions:
144+
contents: write
145+
steps:
146+
- uses: actions/[email protected]
147+
- uses: actions/download-artifact@v4
148+
with:
149+
name: build-linux
150+
- uses: actions/download-artifact@v4
151+
with:
152+
name: build-mac
153+
- name: Pack artifacts
154+
run: |
155+
tar -czvf ./substrate-contracts-node-linux.tar.gz ./substrate-contracts-node-linux
156+
tar -czvf ./substrate-contracts-node-mac-universal.tar.gz ./substrate-contracts-node-mac
157+
ls -la
158+
- name: Publish release
159+
uses: ghalactic/github-release-from-tag@v5
160+
if: github.ref_type == 'tag'
161+
with:
162+
prerelease: false
163+
draft: true
164+
assets: |
165+
- path: substrate-contracts-node-linux.tar.gz
166+
- path: substrate-contracts-node-mac-universal.tar.gz

.gitlab-ci.yml

Lines changed: 0 additions & 165 deletions
This file was deleted.

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,15 @@ We can have two types of releases:
110110
Note: Before uploading, perform a dry run to ensure that it will be successful.
111111
- [ ] Merge the release PR branch.
112112
- [ ] Replace `XX` in this command with your incremented version number and execute it:
113-
`git checkout main && git pull && git tag v0.XX.0 && git push origin v0.XX.0`.
113+
```bash
114+
TAG="v0.XX.0"
115+
git checkout main
116+
git pull
117+
git tag -a ${TAG} -m "${TAG}"
118+
git push origin ${TAG}
119+
```
114120
This will push a new tag with the version number to this repository.
115-
- [ ] We have set this repository up in a way that tags à la `vX.X.X` trigger
116-
a CI run that creates a GitHub draft release. You can observe CI runs on
117-
[GitLab](https://gitlab.parity.io/parity/mirrors/substrate-contracts-node/-/pipelines).
121+
- [ ] After tag is pushed CI creates a GitHub draft release.
118122
This draft release will contain a binary for Linux and Mac and appear
119123
under [Releases](https://github.com/paritytech/substrate-contracts-node/releases).
120124
Add a description in the style of "Synchronized with [`polkadot-v1.8.0`](https://github.com/paritytech/polkadot-sdk/tree/release-polkadot-v1.8.0) branch."

0 commit comments

Comments
 (0)