Skip to content

Commit 788ceb7

Browse files
committed
clean up CI
1 parent 72cd99e commit 788ceb7

14 files changed

+14
-1354
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,6 @@ jobs:
106106
run: |
107107
set -euo pipefail
108108
make all zed textmate xcode sublime-ui
109-
mkdir -p out
110-
rm -f out/sublime-ui.zip
111-
(cd assets/sublime-ui && zip -q -r ../../out/sublime-ui.zip *.sublime-theme)
112109
113110
- name: Upload themes artifacts
114111
uses: actions/upload-artifact@v4
@@ -121,7 +118,7 @@ jobs:
121118
intellij/**/*.icls
122119
xcode/**/*.xccolortheme
123120
zed/oxocarbon.json
124-
out/sublime-ui.zip
121+
sublime-ui/
125122
126123
visualstudio:
127124
name: Build Visual Studio Theme
@@ -253,7 +250,7 @@ jobs:
253250
dist/unix-themes/textmate|textmate
254251
dist/unix-themes/zed|zed
255252
dist/unix-themes/xcode|xcode
256-
out/sublime-ui.zip|sublime-ui
253+
dist/unix-themes/sublime-ui|sublime-ui
257254
dist/visualstudio|visualstudio
258255
EOF
259256
@@ -297,6 +294,8 @@ jobs:
297294
echo ' - Copy the `.tmTheme` files to `~/Library/Application Support/Sublime Text/Packages/User`'
298295
echo " - Then select it via Preferences > Color Scheme"
299296
echo "- Unzip the Sublime UI archive."
297+
echo '- Copy the `.tmTheme` files to `~/Library/Application Support/Sublime Text/Packages/User`'
298+
echo " - Then select color scheme via Preferences > Color Scheme"
300299
echo '- Copy the `.sublime-theme` files to `~/Library/Application Support/Sublime Text/Packages/User`'
301300
echo '- Select the theme via Preferences > Select Theme'
302301
echo

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ node_modules
88
# handled by CI/CD
99
*.vsix
1010
/intellij
11+
/sublime-ui
1112
/textmate
1213
/visualstudio
1314
/zed

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ TMDIR := textmate
1818
TM_CONVERTER := target/release/json2tm
1919
TM_USER := ~/Library/Application\ Support/TextMate/Themes
2020
SUBLIME_USER := ~/Library/Application\ Support/Sublime\ Text/Packages/User
21-
SUBLIME_UI := $(ASSETS)/sublime-ui
21+
SUBLIME_UI_DIR := sublime-ui
2222
JSON2ST := target/release/json2st
2323

2424
JSON2ST_SRCS := $(shell find json2st/src -type f -name '*.rs')
@@ -188,10 +188,10 @@ $(TMDIR)/%.tmTheme: $(THEMESDIR)/%.json $(TM_CONVERTER)
188188
$(TM_CONVERTER) $< $@
189189

190190
sublime-ui: $(SUBLIME_UI_INPUTS) $(JSON2ST)
191-
@mkdir -p $(SUBLIME_UI)
191+
@mkdir -p $(SUBLIME_UI_DIR)
192192
@for pair in $(SUBLIME_UI_PAIRS); do \
193193
in=$(THEMESDIR)/$${pair%%:*}; \
194-
out=$(SUBLIME_UI)/$${pair##*:}; \
194+
out=$(SUBLIME_UI_DIR)/$${pair##*:}; \
195195
echo "$$in -> $$out"; \
196196
if [ "$$(basename $$in)" = "PRINT.json" ]; then \
197197
temp_in=$$(mktemp); \
@@ -271,7 +271,7 @@ install-sublime: textmate
271271

272272
install-sublime-ui:
273273
mkdir -p $(SUBLIME_USER)
274-
cp $(SUBLIME_UI)/*.sublime-theme $(SUBLIME_USER)/
274+
cp $(SUBLIME_UI_DIR)/*.sublime-theme $(SUBLIME_USER)/
275275

276276
install-textmate: textmate
277277
mkdir -p $(TM_USER)
@@ -282,7 +282,7 @@ install-xcode: xcode
282282
cp $(XCODEDIR)/*.xccolortheme $(XCODE_USER)/
283283

284284
clean:
285-
cargo clean; rm -f $(OUTDIR)/*.json $(THEMESDIR)/*.json $(ZEDDIR)/*.json $(TMDIR)/*.tmTheme $(INTELLIJDIR)/*.icls $(SUBLIME_UI)/*.sublime-theme
285+
cargo clean; rm -f $(OUTDIR)/*.json $(THEMESDIR)/*.json $(ZEDDIR)/*.json $(TMDIR)/*.tmTheme $(INTELLIJDIR)/*.icls $(SUBLIME_UI_DIR)/*.sublime-theme
286286

287287
benchmark: build $(TM_CONVERTER) $(XCODE_CONVERTER) all
288288
$(call bench,rm -f $(THEMESDIR)/*.json,make -s all)

assets/sublime-ui/PRINT.sublime-theme

Lines changed: 0 additions & 140 deletions
This file was deleted.

assets/sublime-ui/oxocarbon.sublime-theme

Lines changed: 0 additions & 140 deletions
This file was deleted.

0 commit comments

Comments
 (0)