@@ -13,26 +13,40 @@ jobs:
1313 environment : production
1414 env :
1515 CURSORLESS_REPO_ROOT : ${{ github.workspace }}
16+
1617 steps :
17- - uses : actions/checkout@v4
18+ - name : Checkout repository
19+ uses : actions/checkout@v4
1820 with :
1921 fetch-depth : 0
20- - run : corepack enable
21- - uses : actions/setup-node@v4
22+
23+ - name : Enable Corepack
24+ run : corepack enable
25+
26+ - name : Set up Node.js
27+ uses : actions/setup-node@v4
2228 with :
2329 node-version-file : .nvmrc
2430 cache : pnpm
25- - run : pnpm --color install
26- - run : pnpm --color compile
27- - run : pnpm --color --filter '!cursorless-org' --filter '!cursorless-org-*' build
31+
32+ - name : Install dependencies
33+ run : pnpm --color install
34+
35+ - name : Compile
36+ run : pnpm --color compile
37+
38+ - name : Build
39+ run : pnpm --color --filter '!cursorless-org' --filter '!cursorless-org-*' build
2840 env :
2941 CURSORLESS_DEPLOY : true
42+
3043 - name : Publish to Open VSX Registry
3144 id : publishToOpenVSX
3245 uses : HaaLeo/publish-vscode-extension@v1
3346 with :
3447 pat : ${{ secrets.OPEN_VSX_TOKEN }}
3548 packagePath : packages/cursorless-vscode/dist
49+
3650 - name : Publish to Visual Studio Marketplace
3751 uses : HaaLeo/publish-vscode-extension@v1
3852 with :
@@ -47,36 +61,53 @@ jobs:
4761 env :
4862 CURSORLESS_REPO_ROOT : ${{ github.workspace }}
4963 STAGING_DIRECTORY : ${{ github.workspace }}/cursorless.nvim-staging
64+
5065 steps :
51- - uses : actions/checkout@v4
52- - run : corepack enable
53- - uses : actions/setup-node@v4
66+ - name : Checkout repository
67+ uses : actions/checkout@v4
68+
69+ - name : Enable Corepack
70+ run : corepack enable
71+
72+ - name : Set up Node.js
73+ uses : actions/setup-node@v4
5474 with :
5575 node-version-file : .nvmrc
5676 cache : pnpm
57- - run : pnpm --color install
58- - run : pnpm --color compile
59- - run : pnpm --color --filter '!cursorless-org' --filter '!cursorless-org-*' build
77+
78+ - name : Install dependencies
79+ run : pnpm --color install
80+
81+ - name : Compile
82+ run : pnpm --color compile
83+
84+ - name : Build
85+ run : pnpm --color --filter '!cursorless-org' --filter '!cursorless-org-*' build
6086 env :
6187 CURSORLESS_DEPLOY : true
62- - uses : actions/checkout@v4
88+
89+ - name : Checkout cursorless.nvim plugin repo
90+ uses : actions/checkout@v4
6391 with :
6492 token : ${{ secrets.CURSORLESS_BOT_TOKEN }}
6593 repository : hands-free-vim/cursorless.nvim
6694 path : ${{ env.STAGING_DIRECTORY }}
95+
6796 - name : Configure GPG Key
6897 working-directory : ${{ env.STAGING_DIRECTORY }}
6998 run : |
7099 echo -n "$GPG_SIGNING_KEY" | base64 --decode | gpg --import
71100 env :
72101 GPG_SIGNING_KEY : ${{ secrets.CURSORLESS_BOT_GPG_SIGNING_KEY }}
102+
73103 - name : git config
74104 working-directory : ${{ env.STAGING_DIRECTORY }}
75105 run : |
76106 git config user.name cursorless-bot
77107 git config user.email [email protected] 78108 git config user.signingkey A9387720AFC62221
79109 git config commit.gpgsign true
110+
80111 - name : Push compiled files to cursorless.nvim plugin repo
81112 run : bash -x scripts/deploy-cursorless-nvim.sh ${{ env.STAGING_DIRECTORY }}
82113
@@ -85,20 +116,26 @@ jobs:
85116 runs-on : ubuntu-latest
86117 needs : publish-extension
87118 environment : production
119+
88120 steps :
89- - uses : actions/checkout@v4
121+ - name : Checkout repository
122+ uses : actions/checkout@v4
90123 with :
91124 fetch-depth : 0
92125 token : ${{ secrets.CURSORLESS_BOT_TOKEN }}
126+
93127 - name : Configure GPG Key
94128 run : |
95129 echo -n "$GPG_SIGNING_KEY" | base64 --decode | gpg --import
96130 env :
97131 GPG_SIGNING_KEY : ${{ secrets.CURSORLESS_BOT_GPG_SIGNING_KEY }}
132+
98133 - name : git config
99134 run : |
100135 git config user.name cursorless-bot
101136 git config user.email [email protected] 102137 git config user.signingkey A9387720AFC62221
103138 git config commit.gpgsign true
104- - run : bash -x scripts/deploy-cursorless-talon.sh
139+
140+ - name : Push cursorless-talon subrepo
141+ run : bash -x scripts/deploy-cursorless-talon.sh
0 commit comments