Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TheR1D committed Apr 6, 2024
1 parent 9b0bfa2 commit af44373
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Docker Image CI

on:
push:
branches:
- main
tags:
- '[0-9]+.[0-9]+.[0-9]+'

Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: '3.11'
- name: Install pypa/build
run: >-
python3 -m
pip install
hatchling
--user
- name: Get ShellGPT version
run: echo "SGPT_VERSION=$(python3 -m hatchling version)" >> $GITHUB_ENV
- name: Build a binary wheel and a source tarball
run: python3 -m hatchling build
- name: Store the distribution packages
Expand All @@ -34,7 +36,6 @@ jobs:

publish-to-pypi:
name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
needs:
- build
runs-on: ubuntu-latest
Expand Down Expand Up @@ -80,9 +81,9 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
run: >-
gh release create
'${{ github.ref_name }}'
"$SGPT_VERSION"
--repo '${{ github.repository }}'
--notes ""
--notes "$SGPT_VERSION"
- name: Upload artifact signatures to GitHub Release
env:
GITHUB_TOKEN: ${{ github.token }}
Expand All @@ -91,5 +92,5 @@ jobs:
# sigstore-produced signatures and certificates.
run: >-
gh release upload
'${{ github.ref_name }}' dist/**
"$SGPT_VERSION" dist/**
--repo '${{ github.repository }}'

0 comments on commit af44373

Please sign in to comment.