Skip to content

Commit

Permalink
publish-aur.yaml fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
jasursadikov committed Nov 6, 2024
1 parent 6d973e5 commit e6dd159
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 27 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/publish-aur.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ jobs:
aur-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Get Version from Tag
id: get_version
run: echo "VERSION=$(git describe --tags --abbrev=0 | sed 's/^v//')" >> $GITHUB_ENV
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Update PKGBUILD with New Version
- name: Update PKGBUILD with Tag Version
run: |
sed -i "s/^pkgver=.*/pkgver=${{ env.VERSION }}/" PKGBUILD
version=$(git describe --tags --abbrev=0 | sed 's/^v//')
sed -i "s/^pkgver=.*/pkgver=${version}/" PKGBUILD
cat PKGBUILD
- name: Publish AUR package
Expand All @@ -29,5 +29,5 @@ jobs:
commit_username: ${{ secrets.AUR_USERNAME }}
commit_email: ${{ secrets.AUR_EMAIL }}
ssh_private_key: ${{ secrets.AUR_SSH_KEY }}
commit_message: Update AUR package
ssh_keyscan_types: rsa,ecdsa,ed25519
commit_message: "Update AUR package to version ${latest_version}"
ssh_keyscan_types: rsa,ecdsa,
40 changes: 22 additions & 18 deletions .github/workflows/publish-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,29 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Check out the repository
uses: actions/checkout@v3
- name: Check out the repository
uses: actions/checkout@v2
with:
fetch-depth: 0

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build the package
run: python -m build
- name: Build the package
run: |
rm -rf dist # Clean up any previous builds
python -m build
- name: Publish to PyPI
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.TWINE_PAT }}
run: |
twine upload dist/*
- name: Publish to PyPI
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.TWINE_PAT }}
run: |
twine upload dist/*

0 comments on commit e6dd159

Please sign in to comment.