Skip to content

Commit a7c387a

Browse files
committed
chore: update version tag
1 parent 130a7e3 commit a7c387a

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,12 @@ jobs:
9595
9696
- name: Retrieve Version
9797
run: |
98-
git config --global user.name 'github-actions[bot]'
99-
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
10098
cd ./src/http-server
10199
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
102100
echo "CRATE_VERSION=$(cargo tag --no-commit --no-tag -p=v ${{ inputs.version }})" >> $GITHUB_ENV
103101
else
104-
echo "CRATE_VERSION=$(cargo tag --no-commit --no-tag -p=v pre.$(date +%Y%m%d%H%M%S)" >> $GITHUB_ENV
102+
echo "CRATE_VERSION=$(cargo tag --no-commit --no-tag -p=v prerelease pre.$(date +%Y%m%d%H%M%S))" >> $GITHUB_ENV
105103
fi
106-
git push origin main --follow-tags
107104
108105
- name: Build binary
109106
run: cargo build --release --target ${{ matrix.target }} -p http-server
@@ -148,15 +145,15 @@ jobs:
148145
run: |
149146
cargo binstall -y --force cargo-edit
150147
151-
- name: Retrieve Version
148+
- name: Commit Version Bump
152149
run: |
153150
git config --global user.name 'github-actions[bot]'
154151
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
155152
cd ./src/http-server
156153
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
157154
echo "CRATE_VERSION=$(cargo tag --no-commit --no-tag -p=v ${{ inputs.version }})" >> $GITHUB_ENV
158155
else
159-
echo "CRATE_VERSION=$(cargo tag --no-commit --no-tag -p=v pre.$(date +%Y%m%d%H%M%S)" >> $GITHUB_ENV
156+
echo "CRATE_VERSION=$(cargo tag --no-commit --no-tag -p=v prerelease pre.$(date +%Y%m%d%H%M%S))" >> $GITHUB_ENV
160157
fi
161158
git push origin main --follow-tags
162159

0 commit comments

Comments
 (0)