Skip to content

Commit 45bd46f

Browse files
committed
ci: peaceiris/workflows/[email protected]
1 parent 95792e1 commit 45bd46f

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,6 @@ jobs:
1010
runs-on: ubuntu-18.04
1111
steps:
1212
- uses: actions/[email protected]
13-
14-
- name: Dump GitHub context
15-
env:
16-
GITHUB_CONTEXT: ${{ toJson(github) }}
17-
run: echo "${GITHUB_CONTEXT}"
18-
19-
- name: Install github/hub
20-
run: |
21-
export HUB_VERSION="2.14.2"
22-
curl -fsSL https://github.com/github/hub/raw/8d91904208171b013f9a9d1175f4ab39068db047/script/get | bash -s "${HUB_VERSION}"
23-
24-
- name: Create release
13+
- uses: peaceiris/workflows/[email protected]
2514
env:
2615
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27-
run: |
28-
TAG_NAME="${GITHUB_REF##refs/tags/}"
29-
echo "See [CHANGELOG.md](https://github.com/${GITHUB_REPOSITORY}/blob/${TAG_NAME}/CHANGELOG.md) for more details." > ./release_notes.md
30-
RELEASE_NAME="$(jq -r '.name' ./package.json)"
31-
sed -i "1i${RELEASE_NAME} ${TAG_NAME}\n" ./release_notes.md
32-
./bin/hub release create \
33-
--draft \
34-
--prerelease \
35-
--file ./release_notes.md \
36-
"${TAG_NAME}"

0 commit comments

Comments
 (0)