Skip to content

Commit ed22f32

Browse files
committed
ci: allow workflow_dispatch events
1 parent b50f55e commit ed22f32

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Deploy site
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches: [master]
67
paths-ignore: ['docs/assets/keymap*.json', 'README.md']
@@ -20,8 +21,7 @@ jobs:
2021

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

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

@@ -117,4 +116,4 @@ jobs:
117116
steps:
118117
- name: Deploy to GitHub Pages
119118
id: deployment
120-
uses: actions/deploy-pages@v4
119+
uses: actions/deploy-pages@v4

.github/workflows/generate_keymap.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ jobs:
3939
- { runs_on: 'ubuntu-latest', suffix: '' }
4040
- { runs_on: 'macos-latest', suffix: '-macos' }
4141
runs-on: ${{ matrix.platform.runs_on }}
42-
steps:
4342

43+
steps:
4444
- name: Checkout
4545
uses: actions/checkout@v4
4646

@@ -100,7 +100,6 @@ jobs:
100100
pull-requests: write
101101

102102
steps:
103-
104103
- name: Checkout
105104
uses: actions/checkout@v4
106105

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

0 commit comments

Comments
 (0)