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:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: https://github.com/actions/checkout@v2
|
||||||
- uses: actions/setup-python@v4
|
- uses: https://github.com/actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.10.x'
|
python-version: '3.10.x'
|
||||||
- name: Install Env
|
- name: Install Env
|
||||||
@ -27,7 +27,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sed -i -e "s/?????/${{ env.CURRENT_TIME_VERSION }}/g" src/__init__.py
|
sed -i -e "s/?????/${{ env.CURRENT_TIME_VERSION }}/g" src/__init__.py
|
||||||
make build
|
make build
|
||||||
- uses: ncipollo/release-action@v1
|
- uses: https://github.com/ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
artifacts: "utils"
|
artifacts: "utils"
|
||||||
body: "It's releasin' time"
|
body: "It's releasin' time"
|
||||||
|
@ -93,13 +93,14 @@ def beautify(words: list[str]):
|
|||||||
|
|
||||||
@main.command()
|
@main.command()
|
||||||
def update():
|
def update():
|
||||||
"""Get the newest release from GitHub and install it."""
|
"""Get the newest release from Gitea and install it."""
|
||||||
response = httpx.get(
|
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:
|
if response.status_code != 200:
|
||||||
click.echo(
|
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.status_code} with the following content:\n"
|
||||||
f"{response.content}"
|
f"{response.content}"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user