Update .gitea/workflows/build.yaml
Some checks failed
Release Version / build (push) Failing after 48s
Some checks failed
Release Version / build (push) Failing after 48s
This commit is contained in:
parent
e555b41431
commit
0eb50f49d4
|
@ -35,6 +35,7 @@ jobs:
|
||||||
latest_version=$(git describe --tags --abbrev=0 || echo "v0.0.0")
|
latest_version=$(git describe --tags --abbrev=0 || echo "v0.0.0")
|
||||||
new_version=$(echo $latest_version | awk -F. '{printf "v%d.%d.%d", $1, $2, $3+1}')
|
new_version=$(echo $latest_version | awk -F. '{printf "v%d.%d.%d", $1, $2, $3+1}')
|
||||||
|
|
||||||
|
# Sprawdzenie, czy nowy tag już istnieje
|
||||||
if git rev-parse "$new_version" >/dev/null 2>&1; then
|
if git rev-parse "$new_version" >/dev/null 2>&1; then
|
||||||
echo "Tag $new_version already exists. Exiting."
|
echo "Tag $new_version already exists. Exiting."
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -61,9 +62,6 @@ jobs:
|
||||||
GITEA_TOKEN: ${{ secrets.TOKEN }}
|
GITEA_TOKEN: ${{ secrets.TOKEN }}
|
||||||
GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
||||||
|
|
||||||
- name: Save release URL
|
|
||||||
run: echo "upload_url=${{ steps.create_release.outputs.upload_url }}" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Upload Go binary to release
|
- name: Upload Go binary to release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user