@@ -14,69 +14,69 @@ jobs:
1414 contents : write
1515
1616 steps :
17- - name : Checkout repository
18- uses : actions/checkout@v3
19- with :
20- fetch-depth : 0
17+ - name : Checkout repository
18+ uses : actions/checkout@v3
19+ with :
20+ fetch-depth : 0
2121
22- - name : Setup Lua
23- uses : leafo/gh-actions-lua@v8
24- with :
25- luaVersion : " 5.4"
22+ - name : Setup Lua
23+ uses : leafo/gh-actions-lua@v8
24+ with :
25+ luaVersion : " 5.4"
2626
27- # Step 1: Config Generation
28- - name : Generate Config
29- run : |
30- lua tools/generate-config.lua
27+ # Step 1: Config Generation
28+ - name : Generate Config
29+ run : |
30+ lua tools/generate-config.lua
3131
32- # Step 2: Generate LuaLS Definitions
33- - name : Generate LuaLS
34- run : |
35- lua tools/generate-annotations.lua src
32+ # Step 2: Generate LuaLS Definitions
33+ - name : Generate LuaLS
34+ run : |
35+ lua tools/generate-annotations.lua src
3636
37- # Step 3: Bundle and Minify
38- - name : Bundle and Minify
39- run : |
40- mkdir -p release
41- lua tools/bundler.lua
37+ # Step 3: Bundle and Minify
38+ - name : Bundle and Minify
39+ run : |
40+ mkdir -p release
41+ lua tools/bundler.lua
4242
43- # Step 4: Prepare and Generate Documentation
44- - name : Prepare docs directory
45- run : |
46- # Checkout gh-pages branch in a separate directory
47- git worktree add gh-pages gh-pages
48-
49- # Only clean references directory
50- rm -rf gh-pages/docs/references
51- mkdir -p gh-pages/docs/references
43+ # Step 4: Prepare and Generate Documentation
44+ - name : Prepare docs directory
45+ run : |
46+ # Checkout gh-pages branch in a separate directory
47+ git worktree add gh-pages gh-pages
48+
49+ # Only clean references directory
50+ rm -rf gh-pages/docs/references
51+ mkdir -p gh-pages/docs/references
5252
53- # - name: Generate Documentation
54- # run: |
55- # lua tools/generate-docs.lua
53+ - name : Generate Documentation
54+ run : |
55+ lua tools/generate-docs.lua
5656
57- # cp -r build_docs/docs/references/* gh-pages/docs/references/
57+ cp -r build_docs/docs/references/* gh-pages/docs/references/
5858
59- # Step 5: Deploy Documentation
60- - name : Deploy Documentation
61- if : github.event_name == 'push' && github.ref == 'refs/heads/main'
62- uses : peaceiris/actions-gh-pages@v3
63- with :
64- github_token : ${{ secrets.GITHUB_TOKEN }}
65- publish_dir : ./gh-pages
66- keep_files : true
59+ # Step 5: Deploy Documentation
60+ - name : Deploy Documentation
61+ if : github.event_name == 'push' && github.ref == 'refs/heads/main'
62+ uses : peaceiris/actions-gh-pages@v3
63+ with :
64+ github_token : ${{ secrets.GITHUB_TOKEN }}
65+ publish_dir : ./gh-pages
66+ keep_files : true
6767
68- # Step 6: Generate Changelog
69- # - name: Generate Changelog
70- # id: changelog
71- # uses: heinrichreimer/[email protected] 72- # with:
73- # token: ${{ secrets.GITHUB_TOKEN }}
68+ # Step 6: Generate Changelog
69+ # - name: Generate Changelog
70+ # id: changelog
71+ # uses: heinrichreimer/[email protected] 72+ # with:
73+ # token: ${{ secrets.GITHUB_TOKEN }}
7474
75- # Step 7: Commit all changes
76- - name : Commit Changes
77- run : |
78- git config --global user.name 'github-actions[bot]'
79- git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
80- git add config.lua BasaltLS.lua release/basalt.lua CHANGELOG.md
81- git commit -m "Update config, BasaltLS definitions, bundle and changelog" || exit 0
82- git push
75+ # Step 7: Commit all changes
76+ - name : Commit Changes
77+ run : |
78+ git config --global user.name 'github-actions[bot]'
79+ git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
80+ git add config.lua BasaltLS.lua release/basalt.lua CHANGELOG.md
81+ git commit -m "Update config, BasaltLS definitions, bundle and changelog" || exit 0
82+ git push
0 commit comments