File tree 1 file changed +19
-0
lines changed
1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 21
21
with :
22
22
fetch-depth : 0
23
23
24
+ # Fetch all branches and tags
25
+ - name : Fetch all branches and tags
26
+ run : git fetch --all
27
+
28
+ - name : Checkout main branch
29
+ run : git checkout main
30
+
31
+ # ---------------------------------------------
32
+ # ----- setup deps -----
33
+ # ---------------------------------------------
24
34
- name : Use Node.js ${{ matrix.node-version }}
25
35
uses : actions/setup-node@v3
26
36
with :
33
43
npm install -g js-yaml
34
44
npm install -g ovsx
35
45
46
+ # ---------------------------------------------
47
+ # ----- generate files -----
48
+ # ---------------------------------------------
36
49
- name : Export JSON from YAML
37
50
run : js-yaml mcfunction.tmLanguage.yaml > mcfunction.tmLanguage.json
38
51
43
56
echo "v=$VERSION" >> "$GITHUB_OUTPUT"
44
57
echo "ext=syntax-mcfunction-$VERSION.vsix" >> "$GITHUB_OUTPUT"
45
58
59
+ # ---------------------------------------------
60
+ # ----- push files -----
61
+ # ---------------------------------------------
46
62
- name : Push JSON to repo for sublime (if not matched)
47
63
if : github.ref == 'refs/heads/main'
48
64
run : |
63
79
git commit -m "🤖 Bump version"
64
80
git push origin main
65
81
82
+ # ---------------------------------------------
83
+ # ----- release -----
84
+ # ---------------------------------------------
66
85
- id : package
67
86
name : Package VSCode Ext
68
87
run : vsce package
You can’t perform that action at this time.
0 commit comments