Skip to content

Commit 2cf998f

Browse files
authored
Switch from cicleci to gh action for release on tag workflow (#2325)
* Switch from cicleci to gh action for release on tag workflow * Add token * fix
1 parent 9633252 commit 2cf998f

File tree

2 files changed

+25
-22
lines changed

2 files changed

+25
-22
lines changed

.circleci/config.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -241,20 +241,6 @@ jobs:
241241
docker push "cosmwasm/wasmd:${CIRCLE_TAG}"
242242
docker logout
243243
244-
release-tagged:
245-
executor: golang
246-
steps:
247-
- checkout
248-
- gh/setup:
249-
token: WASMD_GITHUB_RELEASES_TOKEN
250-
- run:
251-
name: Create release
252-
command: |
253-
gh release create ${CIRCLE_TAG} \
254-
--title "$CIRCLE_TAG" \
255-
--draft \
256-
--notes "See the [CHANGELOG](https://github.com/CosmWasm/wasmd/blob/${CIRCLE_TAG}/CHANGELOG.md) for details on the changes in this version."
257-
258244
workflows:
259245
test-suite:
260246
jobs:
@@ -298,11 +284,3 @@ workflows:
298284
- simulations:
299285
requires:
300286
- setup-dependencies
301-
- release-tagged:
302-
filters:
303-
tags:
304-
only:
305-
- /^v.*/
306-
branches:
307-
ignore:
308-
- /.*/

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release on Tag
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Draft GitHub release
19+
env:
20+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
run: |
22+
gh release create "${GITHUB_REF_NAME}" \
23+
--title "${GITHUB_REF_NAME}" \
24+
--draft \
25+
--notes "See the [CHANGELOG](https://github.com/CosmWasm/wasmd/blob/${GITHUB_REF_NAME}/CHANGELOG.md) for details on the changes in this version."

0 commit comments

Comments
 (0)