Skip to content

Commit

Permalink
v-1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mIcHyAmRaNe committed Jul 25, 2024
1 parent 3a98a04 commit 7d12067
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
- name: Build Debian package
run: |
export PYTHON=python3
dpkg-buildpackage -rfakeroot -uc -us
- name: Move Debian package to working directory
Expand All @@ -53,4 +54,4 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
okadminfinder_${{ github.ref_name }}-1_all.deb
okadminfinder_${{ github.ref_name }}-1_all.deb
35 changes: 35 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish Poetry Package

on:
push:
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11' # Adjust the Python version as needed

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
export PATH=$HOME/.local/bin:$PATH
- name: Install dependencies
run: poetry install

- name: Build package
run: poetry build

- name: Publish to PyPI
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
run: poetry publish --username __token__ --password $POETRY_PYPI_TOKEN_PYPI
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
# we edit rules, control files, we create changelog, man pages...
# Build deb package
dpkg-buildpackage -rfakeroot -uc -us
# before building a new version, make sure to
# before building a new version, make sure to clean it first
```

## Youtube videos
Expand Down

0 comments on commit 7d12067

Please sign in to comment.