Skip to content

Commit f7bcdc9

Browse files
committed
build: add rerelease command
1 parent 3bd81d1 commit f7bcdc9

File tree

5 files changed

+19
-3
lines changed

5 files changed

+19
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
id: changelog
4242
uses: TriPSs/conventional-changelog-action@v3
4343
with:
44-
# github-token: ${{ secrets.github_token }}
44+
github-token: ${{ secrets.github_token }}
4545
# output-file: "false"
4646
skip-commit: "true"
4747
skip-tag: "true"

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ build-release:
1010
github-release:
1111
bin/release
1212

13+
github-rerelease:
14+
bin/rerelease
15+
1316
local-release: build-release
1417
bin/local-release
1518

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ You can hit the API locally for testing using: `http localhost:9029/status`
168168
- Run the binary manually `swift run`
169169
- Copy local config `cp ./config.json ~/.config/focus/config.json`
170170
- Generate a new release `git tag v0.1.3 && git push --tags origin HEAD`
171-
- Delete last tag remotely and locally `TAG=$(git describe --tags --abbrev=0); git tag -d $TAG; git push --delete origin $TAG`
172171

173172
## Tests
174173

bin/release

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
2-
cd "${0%/*}/.." || exit
2+
set -e
3+
4+
cd "${0%/*}/.."
35

46
# trunk-ignore(shellcheck/SC2312)
57
version=$(git tag --list | tail -n 1)

bin/rerelease

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
set -e
3+
4+
cd "${0%/*}/.."
5+
6+
# delete last tag remotely and locally
7+
# useful when trying to get gh action releases to work
8+
TAG=$(git describe --tags --abbrev=0)
9+
git tag -d "${TAG}"
10+
git push --delete origin "${TAG}"
11+
12+
bin/release

0 commit comments

Comments
 (0)