Skip to content

Commit aa3c248

Browse files
michaelblyonsMichael Lyons
andauthored
Build with GitHub Actions (michaelblyons#1)
* Experiment with GitHub Actions * Install lastest dashing in workflow * Try uploading the docset in GH Actions * Fix GH Action complaints --------- Co-authored-by: Michael Lyons <git@michael.lyo.nz>
1 parent d53d84d commit aa3c248

File tree

3 files changed

+37
-3
lines changed

3 files changed

+37
-3
lines changed

.github/workflows/build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
timeout-minutes: 15
8+
steps:
9+
- uses: actions/checkout@v4
10+
11+
- name: Setup Go
12+
uses: actions/setup-go@v5
13+
14+
- name: Install Dashing
15+
run: go install github.com/technosophos/dashing@latest
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: 3.11
21+
22+
- name: Install Python dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install -r requirements.txt
26+
27+
- name: Build the docset
28+
run: make
29+
30+
- name: Upload the docset
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: sublime-text.docset
34+
path: www.sublimetext.com/sublime-text.docset

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
*/
2-
/dashing.json
1+
/www.sublimetext.com/

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ fix-html:
2525

2626
.PHONY: fix-css
2727
fix-css:
28-
$(shell for f in $$(ls $(local_path)/*.css\?*); do mv "$$f" "$${f%\?*}"; done )
28+
$(shell for f in $$(ls $(local_path)/*.*\?*); do mv "$$f" "$${f%\?*}"; done )
29+
$(shell for f in $$(ls $(local_path)/**/*.*\?*); do mv "$$f" "$${f%\?*}"; done )
2930

3031
build:
3132
yq -j . dashing.yml > $(local_path)/dashing.json

0 commit comments

Comments
 (0)