Skip to content

Commit 1c1bd42

Browse files
committed
add independent actions for other releases
1 parent 73bd22b commit 1c1bd42

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed

.github/workflows/copr_glob.txt

Whitespace-only changes.

.github/workflows/publish-aur.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish to AUR
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
deploy_aur:
11+
runs-on: ubuntu-latest
12+
environment: prod
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Create PKGBUILD dir
17+
run: mkdir -p ./pkg/
18+
- name: Build PKGBUILD
19+
run: sed "s/pkgver=VERSION/pkgver=$(cat pyproject.toml | grep -E 'version = "[0-9\.]+"' -o | grep -E "[0-9\.]+" -o)/" PKGBUILD > ./pkg/PKGBUILD
20+
- name: Publish AUR package
21+
uses: KSXGitHub/[email protected]
22+
with:
23+
pkgname: hhd
24+
pkgbuild: ./pkg/PKGBUILD
25+
commit_username: ${{ secrets.AUR_USERNAME }}
26+
commit_email: ${{ secrets.AUR_EMAIL }}
27+
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
28+
commit_message: update to '${{ github.event.release.name }}'
29+
allow_empty_commits: false
30+
ssh_keyscan_types: rsa,dsa,ecdsa,ed25519

.github/workflows/publish-pipy.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish to PiPy
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
deploy_aur:
11+
runs-on: ubuntu-latest
12+
environment: prod
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Set up Python
17+
uses: actions/setup-python@v3
18+
with:
19+
python-version: "3.10"
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install build
24+
- name: Build package
25+
run: python -m build -s
26+
- name: Publish package
27+
uses: pypa/gh-action-pypi-publish@release/v1
28+
with:
29+
user: __token__
30+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)