Skip to content

Commit

Permalink
fix publish to pypi, next approach
Browse files Browse the repository at this point in the history
  • Loading branch information
TeaM-TL committed Jan 7, 2025
1 parent 625b41b commit e57b7f1
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 26 deletions.
53 changes: 29 additions & 24 deletions .github/workflows/publish_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,37 @@ jobs:
contents: write
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Compile *po files for localisation
run: |
for L in fotokilof/locale/??; do
if [ -e fotokilof/$L/LC_MESSAGES/fotokilof.po ]; then
msgfmt fotokilof/$L/LC_MESSAGES/fotokilof.po -o fotokilof/$L/LC_MESSAGES/fotokilof.mo
fi
done
- name: Compile *po files for localisation
run: |
apt-get install -y gettext tree
ls
tree
L_PRE=fotokilof/locale
L_LAST=LC_MESSAGES/fotokilof
for L in $L_PRE/??; do
if [ -e $L_PRE/$L/$L_LAST.po ]; then
msgfmt $L_PRE/$L/$L_LAST.po -o fotokilof/$L/$L_LAST.mo
fi
done
- name: "Install build"
run: pip install build
- name: "Install build"
run: pip install build

- name: Build package
run: python -m build

- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- name: Build package
run: python -m build
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

- name: Upload artifact signatures to GitHub Release
env:
GITHUB_TOKEN: ${{ github.token }}
run: gh release upload '${{ github.pypi }}' dist/** --repo '${{ github.repository }}'
# - name: Upload artifact signatures to GitHub Release
# env:
# GITHUB_TOKEN: ${{ github.token }}
# run: gh release upload '${{ github.pypi }}' dist/** --repo '${{ github.repository }}'
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
GUI for the most used (by me) ImageMagick functionality for processing pictures.
If ImageMagick or Wand are unavailable, Pillow is in use. There some limitation, but works in general.

![Happy new Year](https://raw.githubusercontent.com/TeaM-TL/FotoKilof/master/screenshots/january_happy_new_year.jpg)

## Screenshots

### Linux
Expand Down

0 comments on commit e57b7f1

Please sign in to comment.