Skip to content

Commit f02350e

Browse files
committed
➕ 将bundle作为压缩包保存
1 parent 3da7fdb commit f02350e

File tree

8 files changed

+14934
-12241
lines changed

8 files changed

+14934
-12241
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 64 deletions
This file was deleted.
Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,11 @@ jobs:
1818
with:
1919
node-version: '12.x'
2020

21-
- name: create jsdos bundles
22-
working-directory: ./bundles
23-
run: |
24-
yarn
25-
yarn build
26-
2721
- name: build react app
2822
working-directory: ./react-app
2923
run: |
30-
yarn
31-
yarn build
24+
pnpm i
25+
pnpm build
3226
3327
- name: Deploy
3428
uses: peaceiris/actions-gh-pages@v3
Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: vscode extension
22
on:
33
push:
44
branches:
@@ -42,33 +42,31 @@ jobs:
4242
- uses: actions/checkout@v2
4343
with:
4444
submodules: true
45-
path: vscode-dosbox
46-
- name: install and test
45+
46+
- name: install and test vscode-dosbox
4747
run: |
4848
yarn install
49-
yarn test && yarn test-local
49+
yarn test
50+
yarn test-local
5051
working-directory: ./vscode-dosbox
5152
env:
5253
DISPLAY: ":99.0"
5354

54-
- name: Checkout masm-tasm repo
55-
uses: actions/checkout@v2
56-
with:
57-
repository: dosasm/masm-tasm
58-
path: masm-tasm
59-
6055
- name: package
6156
run: node dev/package.js
6257
working-directory: ./vscode-dosbox
6358

64-
- name: install and test
59+
- name: install and test ./masm-tasm
6560
run: |
6661
yarn
6762
yarn test && yarn test-web
6863
working-directory: ./masm-tasm
6964
env:
7065
DISPLAY: ":99.0"
7166

67+
- run: yarn lint
68+
if: runner.os == 'Linux'
69+
7270
build:
7371
needs: test
7472
if: success()
@@ -81,19 +79,26 @@ jobs:
8179
- uses: actions/setup-node@v2
8280
with:
8381
node-version: "14"
84-
- name: install dependencies with yarn
85-
run: yarn install
86-
env:
87-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88-
89-
- name: Package the extension
90-
run: node dev/package.js --all
82+
83+
- name: install and package vscode-dosbox
84+
working-directory: ./vscode-dosbox
85+
run: |
86+
yarn
87+
node dev/package.js --all
9188
- uses: actions/upload-artifact@v2
9289
with:
9390
name: "vscepackages"
94-
path: "*.vsix"
91+
path: "./vscode-dosbox/*.vsix"
9592

9693
- run: npx vsce publish --packagePath $(find . -iname "*.vsix")
94+
working-directory: ./vscode-dosbox
9795
env:
9896
VSCE_PAT: ${{ secrets.VSCE_PAT }}
9997
if: success() && startsWith( github.ref, 'refs/tags/')
98+
99+
- name: Publish
100+
if: success() && startsWith( github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest'
101+
run: npx vsce publish --yarn
102+
working-directory: ./masm-tasm
103+
env:
104+
VSCE_PAT: ${{ secrets.VSCE_PAT }}

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[submodule "bundles"]
2+
path = bundles
3+
url = git@github.com:dosasm/assembly-tool.git
4+
branch = gh-pages

bundles

Submodule bundles added at d5a18a4

react-app/develop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if (process.argv.includes('copy') || process.argv.includes('copy-emulators')) {
1414
}
1515

1616
if (process.argv.includes('copy') || process.argv.includes('copy-bundles')) {
17-
const srcDir = path.resolve(__dirname, '../', 'bundles', 'out');
17+
const srcDir = path.resolve(__dirname, '../', 'bundles');
1818
const dstDir = path.resolve(__dirname, 'public', 'bundles');
1919
if (!fs.existsSync(dstDir)) {
2020
fs.mkdirSync(dstDir)

0 commit comments

Comments
 (0)