Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/.yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---

extends: default
ignore: |
.git

rules:
line-length: disable
truthy: disable
33 changes: 33 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Deploy PC System Reference Tool

on:
push:
paths-ignore:
- AGENTS.md
- LICENSE
- README.md
- biome.json
- global.d.ts
- package-lock.json
- package.json
- tsconfig.json
branches:
- main

jobs:
lint:
uses: ./.github/workflows/lint.yml
deploy:
runs-on: ubuntu-latest
needs: lint
steps:
# Load the updated code
- name: Load updated code
uses: appleboy/[email protected]
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USERNAME }}
key: ${{ secrets.DENSEBOT_PRIVATE_SSH_KEY }}
script_stop: true
script: cd ~/pc-system && git pull
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: Lint

on:
pull_request:

jobs:
lint:
uses: ./.github/workflows/lint.yml
5 changes: 2 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
---
name: Lint

on:
push:
branches: [main]
pull_request:
workflow_call:

jobs:
lint:
Expand Down