From f970ef8b23deef16e2e21e7d1f8b01f0fbbf520c Mon Sep 17 00:00:00 2001 From: Don Alfons Nisnoni Date: Thu, 28 May 2020 03:16:06 +0800 Subject: [PATCH] Refactor workflows & ignore artifact folder --- .github/workflows/ci.yml | 20 ++++++++++---------- .github/workflows/release.yml | 21 +++++++++++++++------ .gitignore | 1 + .vscodeignore | 1 + 4 files changed, 27 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a9a0f23..7cd57e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: with: node-version: "8.x" - - name: Install v + - name: Install V latest run: | git clone https://github.com/vlang/v.git cd v/ @@ -22,7 +22,7 @@ jobs: - name: Compile VSymbols run: v ./src/vsymbols -o ./bin/vsymbols - - name: Install vsce + - name: Install VSCE run: npm install --global vsce - name: Install dependencies @@ -31,7 +31,7 @@ jobs: - name: Running Webpack run: npm run webpack - - name: Do Package + - name: Create package run: vsce package build-windows-gcc: @@ -44,7 +44,7 @@ jobs: with: node-version: "8.x" - - name: Install V + - name: Install V latest run: | git clone https://github.com/vlang/v.git d:\v cd d:\v @@ -52,7 +52,7 @@ jobs: .\v symlink echo "::add-path::d:\v" - - name: Verify v is in path + - name: Verify V is in path run: | pwd v version @@ -60,7 +60,7 @@ jobs: - name: Compile VSymbols run: v .\src\vsymbols -o .\bin\vsymbols - - name: Install vsce + - name: Install VSCE run: npm install --global vsce - name: Install dependencies @@ -69,7 +69,7 @@ jobs: - name: Running Webpack run: npm run webpack - - name: Do Package + - name: Create package run: vsce package build-macos: @@ -85,7 +85,7 @@ jobs: with: node-version: "8.x" - - name: Install v + - name: Install V latest run: | git clone https://github.com/vlang/v.git cd v/ @@ -95,7 +95,7 @@ jobs: - name: Compile VSymbols run: v ./src/vsymbols -o ./bin/vsymbols - - name: Install vsce + - name: Install VSCE run: npm install --global vsce - name: Install dependencies @@ -104,5 +104,5 @@ jobs: - name: Running Webpack run: npm run webpack - - name: Do Package + - name: Create package run: vsce package diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 567a443..8a47dac 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: - name: Set release version to env run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF:10} - - name: Install V + - name: Install V latest run: | git clone https://github.com/vlang/v.git cd v/ @@ -27,12 +27,15 @@ jobs: - name: Compile VSymbols run: v -prod ./src/vsymbols -o ./bin/vsymbols - - name: Install vsce + - name: Install VSCE run: npm install --global vsce - name: Install dependencies run: npm install + - name: NPM version + run: npm version ${{ env.RELEASE_VERSION }} + - name: Create package run: vsce package @@ -58,7 +61,7 @@ jobs: - name: Set release version to env run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF:10} - - name: Install V + - name: Install V latest run: | git clone https://github.com/vlang/v.git d:\v cd d:\v @@ -74,12 +77,15 @@ jobs: - name: Compile VSymbols run: v -prod ./src/vsymbols -o ./bin/vsymbols - - name: Install vsce + - name: Install VSCE run: npm install --global vsce - name: Install dependencies run: npm install + - name: NPM version + run: npm version ${{ env.RELEASE_VERSION }} + - name: Create package run: vsce package @@ -109,7 +115,7 @@ jobs: - name: Set release version to env run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF:10} - - name: Install V + - name: Install V latest run: | git clone https://github.com/vlang/v.git cd v/ @@ -119,12 +125,15 @@ jobs: - name: Compile VSymbols run: v -prod ./src/vsymbols -o ./bin/vsymbols - - name: Install vsce + - name: Install VSCE run: npm install --global vsce - name: Install dependencies run: npm install + - name: NPM version + run: npm version ${{ env.RELEASE_VERSION }} + - name: Create package run: vsce package diff --git a/.gitignore b/.gitignore index 7a34f02..4507b11 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ out input.json bin/vsymbols test.v +artifact/ diff --git a/.vscodeignore b/.vscodeignore index fa8911b..2b1141e 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -12,4 +12,5 @@ tsconfig.json ./scripts/minify_json.js ./scripts/rename.js webpack.config.js +artifact/ v