Skip to content

Commit b0ccf95

Browse files
committed
delete
1 parent 39b4f1e commit b0ccf95

File tree

2 files changed

+149
-145
lines changed

2 files changed

+149
-145
lines changed

.github/workflows/auto_build.yml

Lines changed: 89 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,89 @@
1-
# name: auto_build
2-
3-
# on:
4-
# push:
5-
# branches: [release]
6-
# pull_request:
7-
# branches: [release]
8-
9-
# jobs:
10-
# linux:
11-
# name: Linux
12-
# runs-on: ubuntu-latest
13-
# timeout-minutes: 30
14-
# steps:
15-
# - uses: actions/checkout@v2
16-
17-
# - name: Setup Node.js environment
18-
# uses: actions/setup-node@v2
19-
# with:
20-
# node-version: 16
21-
22-
# - name: Install Node.js modules
23-
# run: npm install
24-
25-
# - name: Update Node.js modules
26-
# run: npm update
27-
28-
# - name: Install vsce
29-
# run: npm i -g vsce
30-
31-
# - name: VSCE Packge
32-
# run: |
33-
# vsce package
34-
# VSIX_FILE=$(find ./ -name '*vscode-leetcode-problem-rating*.vsix')
35-
# echo "VSIX_FILE=$VSIX_FILE" >> $GITHUB_ENV
36-
# echo $VSIX_FILE
37-
# - uses: actions/upload-artifact@v2
38-
# with:
39-
# name: vsix_file
40-
# path: ${{ env.VSIX_FILE }}
41-
42-
# windows:
43-
# name: Windows
44-
# runs-on: windows-latest
45-
# timeout-minutes: 30
46-
# steps:
47-
# - uses: actions/checkout@v2
48-
49-
# - name: Setup Node.js environment
50-
# uses: actions/setup-node@v2
51-
# with:
52-
# node-version: 16
53-
54-
# - name: Install Node.js modules
55-
# run: npm install
56-
57-
# - name: Update Node.js modules
58-
# run: npm update
59-
60-
# - name: Install vsce
61-
# run: npm i -g vsce
62-
63-
# - name: VSCE Packge
64-
# run: vsce package
65-
66-
# darwin:
67-
# name: macOS
68-
# runs-on: macos-latest
69-
# timeout-minutes: 30
70-
# steps:
71-
# - uses: actions/checkout@v2
72-
73-
# - name: Setup Node.js environment
74-
# uses: actions/setup-node@v2
75-
# with:
76-
# node-version: 16
77-
78-
# - name: Install Node.js modules
79-
# run: npm install
80-
81-
# - name: Update Node.js modules
82-
# run: npm update
83-
84-
# - name: Install vsce
85-
# run: npm i -g vsce
86-
87-
# - name: VSCE Packge
88-
# run: vsce package
1+
name: auto_build
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
tag:
7+
description: "版本号"
8+
type: string
9+
10+
jobs:
11+
linux:
12+
name: Linux
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 30
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Setup Node.js environment
19+
uses: actions/setup-node@v2
20+
with:
21+
node-version: 16
22+
23+
- name: Install Node.js modules
24+
run: npm install
25+
26+
- name: Update Node.js modules
27+
run: npm update
28+
29+
- name: Install vsce
30+
run: npm i -g vsce
31+
32+
- name: VSCE Packge
33+
run: |
34+
vsce package
35+
VSIX_FILE=$(find ./ -name '*vscode-leetcode-problem-rating*.vsix')
36+
echo "VSIX_FILE=$VSIX_FILE" >> $GITHUB_ENV
37+
echo $VSIX_FILE
38+
- uses: actions/upload-artifact@v2
39+
with:
40+
name: vsix_file
41+
path: ${{ env.VSIX_FILE }}
42+
43+
windows:
44+
name: Windows
45+
runs-on: windows-latest
46+
timeout-minutes: 30
47+
steps:
48+
- uses: actions/checkout@v2
49+
50+
- name: Setup Node.js environment
51+
uses: actions/setup-node@v2
52+
with:
53+
node-version: 16
54+
55+
- name: Install Node.js modules
56+
run: npm install
57+
58+
- name: Update Node.js modules
59+
run: npm update
60+
61+
- name: Install vsce
62+
run: npm i -g vsce
63+
64+
- name: VSCE Packge
65+
run: vsce package
66+
67+
darwin:
68+
name: macOS
69+
runs-on: macos-latest
70+
timeout-minutes: 30
71+
steps:
72+
- uses: actions/checkout@v2
73+
74+
- name: Setup Node.js environment
75+
uses: actions/setup-node@v2
76+
with:
77+
node-version: 16
78+
79+
- name: Install Node.js modules
80+
run: npm install
81+
82+
- name: Update Node.js modules
83+
run: npm update
84+
85+
- name: Install vsce
86+
run: npm i -g vsce
87+
88+
- name: VSCE Packge
89+
run: vsce package

.github/workflows/codeql-analysis.yml

Lines changed: 60 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,71 @@
1-
# # For most projects, this workflow file will not need changing; you simply need
2-
# # to commit it to your repository.
3-
# #
4-
# # You may wish to alter this file to override the set of languages analyzed,
5-
# # or to provide custom queries or build logic.
6-
# #
7-
# # ******** NOTE ********
8-
# # We have attempted to detect the languages in your repository. Please check
9-
# # the `language` matrix defined below to confirm you have the correct set of
10-
# # supported CodeQL languages.
11-
# #
12-
# name: "CodeQL"
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
1313

14-
# on:
15-
# push:
16-
# branches: ["release"]
14+
on:
15+
workflow_dispatch:
16+
inputs:
17+
tag:
18+
description: "版本号"
19+
type: string
1720

18-
# jobs:
19-
# analyze:
20-
# name: Analyze
21-
# runs-on: ubuntu-latest
22-
# permissions:
23-
# actions: read
24-
# contents: read
25-
# security-events: write
21+
jobs:
22+
analyze:
23+
name: Analyze
24+
runs-on: ubuntu-latest
25+
permissions:
26+
actions: read
27+
contents: read
28+
security-events: write
2629

27-
# strategy:
28-
# fail-fast: false
29-
# matrix:
30-
# language: ["javascript"]
31-
# # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
32-
# # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
30+
strategy:
31+
fail-fast: false
32+
matrix:
33+
language: ["javascript"]
34+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
35+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
3336

34-
# steps:
35-
# - name: Checkout repository
36-
# uses: actions/checkout@v3
37+
steps:
38+
- name: Checkout repository
39+
uses: actions/checkout@v3
3740

38-
# # Initializes the CodeQL tools for scanning.
39-
# - name: Initialize CodeQL
40-
# uses: github/codeql-action/init@v2
41-
# with:
42-
# languages: ${{ matrix.language }}
43-
# # If you wish to specify custom queries, you can do so here or in a config file.
44-
# # By default, queries listed here will override any specified in a config file.
45-
# # Prefix the list here with "+" to use these queries and those in the config file.
41+
# Initializes the CodeQL tools for scanning.
42+
- name: Initialize CodeQL
43+
uses: github/codeql-action/init@v2
44+
with:
45+
languages: ${{ matrix.language }}
46+
# If you wish to specify custom queries, you can do so here or in a config file.
47+
# By default, queries listed here will override any specified in a config file.
48+
# Prefix the list here with "+" to use these queries and those in the config file.
4649

47-
# # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
48-
# # queries: security-extended,security-and-quality
50+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
51+
# queries: security-extended,security-and-quality
4952

50-
# # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
51-
# # If this step fails, then you should remove it and run the build manually (see below)
52-
# - name: Autobuild
53-
# uses: github/codeql-action/autobuild@v2
53+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54+
# If this step fails, then you should remove it and run the build manually (see below)
55+
- name: Autobuild
56+
uses: github/codeql-action/autobuild@v2
5457

55-
# # ℹ️ Command-line programs to run using the OS shell.
56-
# # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
58+
# ℹ️ Command-line programs to run using the OS shell.
59+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
5760

58-
# # If the Autobuild fails above, remove it and uncomment the following three lines.
59-
# # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
61+
# If the Autobuild fails above, remove it and uncomment the following three lines.
62+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
6063

61-
# # - run: |
62-
# # echo "Run, Build Application using script"
63-
# # ./location_of_script_within_repo/buildscript.sh
64+
# - run: |
65+
# echo "Run, Build Application using script"
66+
# ./location_of_script_within_repo/buildscript.sh
6467

65-
# - name: Perform CodeQL Analysis
66-
# uses: github/codeql-action/analyze@v2
67-
# with:
68-
# category: "/language:${{matrix.language}}"
68+
- name: Perform CodeQL Analysis
69+
uses: github/codeql-action/analyze@v2
70+
with:
71+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)