Skip to content

Commit

Permalink
ci: allow workflow_dispatch events
Browse files Browse the repository at this point in the history
  • Loading branch information
takase1121 committed Dec 3, 2024
1 parent b50f55e commit ed22f32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Deploy site

on:
workflow_dispatch:
push:
branches: [master]
paths-ignore: ['docs/assets/keymap*.json', 'README.md']
Expand All @@ -20,8 +21,7 @@ jobs:

- name: Get versions
id: version
env:
GH_TOKEN: ${{ github.token }}
env: { GH_TOKEN: "${{ github.token }}" }
run: |
echo "lxl=$(gh -R lite-xl/lite-xl release list --exclude-drafts --exclude-pre-releases --limit 1 --json tagName --jq .[].tagName)" >> "$GITHUB_OUTPUT"
echo "keymap=$(jq -r .version docs/assets/keymap.json)" >> "$GITHUB_OUTPUT"
Expand Down Expand Up @@ -98,7 +98,6 @@ jobs:
run: npm run build

- name: Upload page artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with: { path: site }

Expand All @@ -117,4 +116,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4
6 changes: 2 additions & 4 deletions .github/workflows/generate_keymap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ jobs:
- { runs_on: 'ubuntu-latest', suffix: '' }
- { runs_on: 'macos-latest', suffix: '-macos' }
runs-on: ${{ matrix.platform.runs_on }}
steps:

steps:
- name: Checkout
uses: actions/checkout@v4

Expand Down Expand Up @@ -100,7 +100,6 @@ jobs:
pull-requests: write

steps:

- name: Checkout
uses: actions/checkout@v4

Expand All @@ -118,5 +117,4 @@ jobs:
This is an automated PR that updates keymap.json and keymap-macos.json
based on changes in Lite XL ${{ inputs.lite_xl_version }}.
commit-message: Update keymap.json and keymap-macos.json with changes from ${{ inputs.lite_xl_version }}
add-paths: |
docs/assets/keymap*.json
add-paths: docs/assets/keymap*.json

0 comments on commit ed22f32

Please sign in to comment.