Skip to content

Commit d6ef48b

Browse files
committed
💚 Move AUR CD to the last to avoid incomplete downloading
1 parent ad2778d commit d6ef48b

File tree

3 files changed

+27
-16
lines changed

3 files changed

+27
-16
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,28 @@ jobs:
6868
- name: Build
6969
run: |
7070
python -m build
71+
- uses: pypa/gh-action-pypi-publish@release/v1
72+
if: runner.os == 'Linux' && startsWith(github.ref, 'refs/tags/')
73+
with:
74+
password: ${{ secrets.PYPI_API_TOKEN }}
7175
- uses: actions/upload-artifact@v3
72-
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
76+
if: runner.os == 'Linux' && ! startsWith(github.ref, 'refs/tags/')
7377
with:
7478
path: |
7579
dist/*
76-
build/resources/*
7780
- uses: softprops/action-gh-release@v1
78-
if: startsWith(github.ref, 'refs/tags/')
81+
if: runner.os == 'Linux' && startsWith(github.ref, 'refs/tags/')
7982
with:
83+
body_path: build/CHANGELOG.md
8084
files: |
8185
dist/*
82-
build/resources/*
83-
- uses: pypa/gh-action-pypi-publish@release/v1
84-
if: runner.os == 'Linux' && startsWith(github.ref, 'refs/tags/')
85-
with:
86-
password: ${{ secrets.PYPI_API_TOKEN }}
86+
87+
# deploy:
88+
# needs: build
89+
# runs-on: ubuntu-latest
90+
# if: startsWith(github.ref, 'refs/tags/')
91+
# steps:
92+
# - uses: Freed-Wu/[email protected]
93+
# with:
94+
# package_name: python-repl-python-wakatime
95+
# ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}

.pre-commit-config.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ repos:
2222
- id: check-toml
2323
- id: check-json
2424
- repo: https://github.com/Lucas-C/pre-commit-hooks
25-
rev: v1.4.2
25+
rev: v1.5.1
2626
hooks:
2727
- id: remove-crlf
2828
- repo: https://github.com/codespell-project/codespell
@@ -46,16 +46,15 @@ repos:
4646
hooks:
4747
- id: check-mailmap
4848
- repo: https://github.com/adrienverge/yamllint
49-
rev: v1.30.0
49+
rev: v1.32.0
5050
hooks:
5151
- id: yamllint
5252
- repo: https://github.com/executablebooks/mdformat
5353
rev: 0.7.16
5454
hooks:
5555
- id: mdformat
56-
args:
57-
- --number
5856
additional_dependencies:
57+
- mdformat-pyproject
5958
- mdformat-gfm
6059
- mdformat-myst
6160
- mdformat-toc
@@ -64,13 +63,13 @@ repos:
6463
- mdformat-black
6564
- mdformat-config
6665
- repo: https://github.com/DavidAnson/markdownlint-cli2
67-
rev: v0.6.0
66+
rev: v0.7.1
6867
hooks:
6968
- id: markdownlint-cli2
7069
additional_dependencies:
7170
7271
- repo: https://github.com/Freed-Wu/pre-commit-hooks
73-
rev: 0.0.10
72+
rev: 0.0.11
7473
hooks:
7574
- id: update-CITATION.cff
7675
- id: update-pyproject.toml
@@ -79,7 +78,7 @@ repos:
7978
hooks:
8079
- id: perltidy
8180
- repo: https://github.com/psf/black
82-
rev: 23.1.0
81+
rev: 23.3.0
8382
hooks:
8483
- id: black
8584
- repo: https://github.com/PyCQA/isort
@@ -93,7 +92,7 @@ repos:
9392
additional_dependencies:
9493
- tomli
9594
- repo: https://github.com/kumaraditya303/mirrors-pyright
96-
rev: v1.1.300
95+
rev: v1.1.309
9796
hooks:
9897
- id: pyright
9998
- repo: https://github.com/PyCQA/bandit

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ write_to = "src/repl_python_wakatime/_version.py"
6161
[tool.setuptools-generate]
6262
write-to = "src/repl_python_wakatime/_metainfo.py"
6363

64+
[tool.mdformat]
65+
number = true
66+
6467
[tool.black]
6568
line-length = 79
6669

0 commit comments

Comments
 (0)