Skip to content

Commit 7b77390

Browse files
committed
Test build workflow
1 parent 47d9c82 commit 7b77390

30 files changed

+2924
-187
lines changed
Lines changed: 28 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,38 @@
11
name: Plugin Updater
22

33
on:
4-
schedule:
5-
- cron: "0 0 * * *"
64
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
paths:
9+
- webcomponents/**.js
10+
- webcomponents/**.ts
11+
- webcomponents/**.json
12+
- webcomponents/**.svelte
13+
14+
permissions:
15+
contents: write
716

817
jobs:
9-
Update:
18+
build-webcomponents:
19+
name: Build web components
1020
runs-on: ubuntu-latest
1121
steps:
12-
- uses: actions/checkout@v2
13-
with:
14-
token: ${{ secrets.UPDATER }}
15-
16-
- uses: actions/setup-python@v2
22+
- uses: actions/checkout@v4
23+
- name: Setup Node
24+
uses: actions/setup-node@v4
1725
with:
18-
python-version: "3.x"
19-
20-
- name: Install Dependencies
21-
run: pip install -r ./ci/envs/requirements-plugin.txt
22-
23-
- name: Update Plugin Informations
24-
run: python ./ci/src/plugin_updater.py
25-
env:
26-
GH_TOKEN: ${{ github.token }}
27-
REPOSITORY: "Flow-Launcher/Flow.Launcher.PluginsManifest"
28-
PLUGIN_JSON: "plugins.json"
29-
PLUGIN_MARKDOWN: "plugins.md"
30-
PLUGIN_NAME: "Name"
31-
PLUGIN_AUTHOR: "Author"
32-
PLUGIN_DESCRIPTION: "Description"
33-
PLUGIN_VERSION: "Version"
34-
PLUGIN_WEBSITE: "Website"
35-
36-
- name: Commit & Push changes
37-
uses: stefanzweifel/git-auto-commit-action@v4
26+
node-version: 20
27+
- name: Get version
28+
id: version
29+
run: |
30+
version=$(jq -r .version webcomponents/package.json)
31+
echo "version=$version" >> $GITHUB_OUTPUT
32+
- name: Build
33+
run: cd webcomponents && npm install && npm run build
34+
- name: Publish web components
35+
uses: softprops/action-gh-release@v2
3836
with:
39-
commit_message: "DOC: update plugin list"
40-
push_options: --force
41-
branch: main
37+
files: webcomponents/dist/flow-launcher-docs-web-components.js
38+
tag_name: webcomponents-v${{ steps.version.outputs.version }}

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
loadSidebar: true,
2828
subMaxLevel: 4,
2929
search: 'auto',
30+
executeScript: true,
3031
auto2top: true,
3132
plugins: [
3233
function (hook, vm) {

plugins.md

Lines changed: 12 additions & 156 deletions
Large diffs are not rendered by default.

webcomponents/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
dist/
3+
.idea/

0 commit comments

Comments
 (0)