Skip to content

Commit

Permalink
👷 Update CD
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Jul 20, 2023
1 parent c24a16c commit 2312685
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 8 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,25 @@ jobs:
# body_path: build/CHANGELOG.md
files: |
dist/*
deploy:
deploy-aur:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: Freed-Wu/update-aur-package@v1.0.11
with:
package_name: python-bitbake-language-server
package_name: bitbake-language-server
ssh_private_key: ${{secrets.AUR_SSH_PRIVATE_KEY}}

deploy-nur:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Trigger Workflow
run: >
curl -X POST -d '{"ref":"main"}'
-H "Accept: application/vnd.github.v3+json"
-H "Authorization: Bearer ${{ secrets.GH_TOKEN }}"
https://api.github.com/repos/Freed-Wu/nur-packages/actions/workflows/version.yml/dispatches
29 changes: 29 additions & 0 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
"on":
push:
paths-ignore:
- "**.md"
pull_request:
paths-ignore:
- "**.md"
workflow_dispatch:

jobs:
build:
strategy:
matrix:
nixpkgs:
- nixos-unstable
- nixpkgs-unstable
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:${{matrix.nixpkgs}}
extra_nix_config: |
experimental-features = nix-command flakes
access-tokens = github.com=${{secrets.GITHUB_TOKEN}}
- name: Build
run: |
nix build
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ repos:
hooks:
- id: remove-crlf
- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
rev: v2.2.5
hooks:
- id: codespell
additional_dependencies:
Expand All @@ -39,7 +39,7 @@ repos:
args:
- --msg-filename
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 2.7.1
rev: 2.7.2
hooks:
- id: editorconfig-checker
- repo: https://github.com/jumanjihouse/pre-commit-hooks
Expand Down Expand Up @@ -74,7 +74,7 @@ repos:
additional_dependencies:
- markdown-it-texmath@0.9.1
- repo: https://github.com/perltidy/perltidy
rev: "20230309.03"
rev: "20230309.04"
hooks:
- id: perltidy
- repo: https://github.com/psf/black
Expand All @@ -92,7 +92,7 @@ repos:
additional_dependencies:
- tomli
- repo: https://github.com/kumaraditya303/mirrors-pyright
rev: v1.1.313
rev: v1.1.316
hooks:
- id: pyright
- repo: https://github.com/PyCQA/bandit
Expand Down
3 changes: 1 addition & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
{
formatter = nixpkgs-fmt;
packages.default = buildPythonApplication rec {
pname = "bitbake-language-server";
version = "";
name = "bitbake-language-server";
src = self;
format = "pyproject";
disabled = pythonOlder "3.6";
Expand Down

0 comments on commit 2312685

Please sign in to comment.