Skip to content

make sure gh binary exists #28053

Closed
@6543

Description

@6543

https://github.com/go-gitea/gitea/actions/runs/6864716362/job/18667116788 :

Run gh release create v1.21.0 --title v1.21.0 --draft --notes-from-tag dist/release/*
/home/runner/work/_temp/df1f597e-b671-4a36-8c9b-df8014b8f9a3.sh: line 1: gh: command not found
Error: Process completed with exit code 127.

affects v1.20.x and main

- name: create github release
run: |
gh release create ${{ github.ref_name }} --title ${{ github.ref_name }} --draft --notes-from-tag dist/release/*
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}

also we should make sure gh release dont fail if release was already created and overwrite artifacts (as it was done with drone plugin)

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/buildPR changes how Gitea is built, i.e. regarding Docker or the Makefiletype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions