Skip to content

Commit 9fb0a34

Browse files
committed
misc: fix release workflow
Signed-off-by: Anthony Griffon <[email protected]>
1 parent 9274d5f commit 9fb0a34

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build-release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: actions/checkout@v4
2121
- name: Get the release version from the tag
2222
if: env.VERSION == ''
23-
run: echo "${{ github.ref_name }}" | sed -En 's/^roster-v(.*)$/VERSION=\1/p' >> $GITHUB_ENV
23+
run: echo "${{ github.ref_name }}" | sed -En 's/^v(.*)$/VERSION=\1/p' >> $GITHUB_ENV
2424
- name: Get the roster release version from the tag
2525
if: env.RELEASE_NAME == ''
2626
run: echo "RELEASE_NAME=${{ github.ref_name }}" >> $GITHUB_ENV
@@ -30,7 +30,7 @@ jobs:
3030
- name: Check that tag version and Cargo.toml version are the same
3131
shell: bash
3232
run: |
33-
if ! grep -q "version = \"$VERSION\"" cli/Cargo.toml; then
33+
if ! grep -q "version = \"$VERSION\"" Cargo.toml; then
3434
echo "version does not match Cargo.toml" >&2
3535
exit 1
3636
fi
@@ -209,8 +209,8 @@ jobs:
209209
run: |
210210
mkdir -p "$ARCHIVE"/{complete,doc}
211211
cp "$BIN" "$ARCHIVE"/
212-
cp cli/README.md "$ARCHIVE"/
213-
cp cli/CHANGELOG.md "$ARCHIVE"/doc/
212+
cp README.md "$ARCHIVE"/
213+
cp CHANGELOG.md "$ARCHIVE"/doc/
214214
215215
# - name: Generate man page and completions (no emulation)
216216
# if: matrix.qemu == ''

0 commit comments

Comments
 (0)