File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -205,13 +205,9 @@ jobs:
205205 npm install -g tree-sitter-cli
206206 tree-sitter init -u
207207 tree-sitter generate
208- - uses : actions/setup-python@v5
209- with :
210- python-version : 3.x
211- cache : pip
208+ - uses : astral-sh/setup-uv@v8.3.2
212209 - name : Build
213210 run : |
214- pip install uv
215211 uv build --sdist
216212 - uses : actions/upload-artifact@v4
217213 if : " ! startsWith(github.ref, 'refs/tags/')"
@@ -234,3 +230,26 @@ jobs:
234230 if : startsWith(github.ref, 'refs/tags/')
235231 with :
236232 password : ${{secrets.PYPI_API_TOKEN}}
233+
234+ deploy-aur :
235+ needs : build
236+ runs-on : ubuntu-latest
237+ if : startsWith(github.ref, 'refs/tags/')
238+ steps :
239+ - uses : Freed-Wu/update-aur-package@v1.0.11
240+ if : startsWith(github.ref, 'refs/tags/')
241+ with :
242+ package_name : python-tree-sitter-tmux
243+ ssh_private_key : ${{secrets.AUR_SSH_PRIVATE_KEY}}
244+
245+ deploy-nur :
246+ needs : build
247+ runs-on : ubuntu-latest
248+ if : startsWith(github.ref, 'refs/tags/')
249+ steps :
250+ - name : Trigger Workflow
251+ run : >
252+ curl -X POST -d '{"ref":"main"}'
253+ -H "Accept: application/vnd.github.v3+json"
254+ -H "Authorization: Bearer ${{secrets.GH_TOKEN}}"
255+ https://api.github.com/repos/Freed-Wu/nur-packages/actions/workflows/version.yml/dispatches
You can’t perform that action at this time.
0 commit comments