try actions
This commit is contained in:
parent
8fffbb52a5
commit
81ef514459
6
.github/workflows/build_and_release.yml
vendored
6
.github/workflows/build_and_release.yml
vendored
@ -11,8 +11,8 @@ jobs:
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v4
|
||||
- uses: https://github.com/actions/checkout@v2
|
||||
- uses: https://github.com/actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.10.x'
|
||||
- name: Install Env
|
||||
@ -27,7 +27,7 @@ jobs:
|
||||
run: |
|
||||
sed -i -e "s/?????/${{ env.CURRENT_TIME_VERSION }}/g" src/__init__.py
|
||||
make build
|
||||
- uses: ncipollo/release-action@v1
|
||||
- uses: https://github.com/ncipollo/release-action@v1
|
||||
with:
|
||||
artifacts: "utils"
|
||||
body: "It's releasin' time"
|
||||
|
@ -93,13 +93,14 @@ def beautify(words: list[str]):
|
||||
|
||||
@main.command()
|
||||
def update():
|
||||
"""Get the newest release from GitHub and install it."""
|
||||
"""Get the newest release from Gitea and install it."""
|
||||
response = httpx.get(
|
||||
"https://api.github.com/repos/itsthejoker/utils/releases/latest"
|
||||
# "https://api.github.com/repos/itsthejoker/utils/releases/latest"
|
||||
"https://git.joekaufeld.com/api/v1/repos/jkaufeld/utils/releases/latest"
|
||||
)
|
||||
if response.status_code != 200:
|
||||
click.echo(
|
||||
f"Something went wrong when talking to GitHub; got a"
|
||||
f"Something went wrong when talking to Gitea; got a"
|
||||
f" {response.status_code} with the following content:\n"
|
||||
f"{response.content}"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user