Skip to content

Commit 01e1001

Browse files
authored
Update main.yml
1 parent 26a9dbb commit 01e1001

File tree

1 file changed

+27
-20
lines changed

1 file changed

+27
-20
lines changed

.github/workflows/main.yml

Lines changed: 27 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,29 @@
11
# This is a basic workflow to help you get started with Actions
2-
# Optional SDK version(s) to use. If not provided, will install global.json version when available. Examples: 2.2.104, 3.1, 3.1.x, 3.x
3-
dependencies:
4-
$ref": definitions/stringContainingExpressionSyntax
5-
available uses:
6-
"description": "A build matrix is a set of different configurations of the virtual environment. For example you might run a job against more than one supported version of a language, operating system, or tool. Each configuration is a copy of the job that runs and reports a status.\nYou can specify a matrix by supplying an array for the configuration options. For example, if the GitHub virtual environment supports Node.js versions 6, 8, and 10 you could specify an array of those versions in the matrix.\nWhen you define a matrix of operating systems, you must set the required runs-on keyword to the operating system of the current job, rather than hard-coding the operating system name. To access the operating system name, you can use the matrix.os context parameter to set runs-on. For more information, see https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions.",
7-
"shell": ubuntu-latest
8-
global-json-file: ./for_developers/api/data/globals.md
9-
root: ./
10-
github.event_name: staging
2+
3+
name: CI
4+
- name: Cache
5+
uses: actions/cache@v3.0.11
6+
with:
7+
# A list of files, directories, and wildcard patterns to cache and restore
8+
path:
9+
# An explicit key for restoring and saving the cache
10+
key:
11+
# An ordered list of keys to use for restoring stale cache if no cache hit occurred for key. Note `cache-hit` returns false in this case.
12+
restore-keys: # optional
13+
# The chunk size used to split up large files during upload, in bytes
14+
upload-chunk-size: # optional
15+
16+
- name: Index.md
17+
uses: actions/download-artifact@v3.0.1
18+
with
19+
1120
jobs:
1221
my_job:
13-
name: page_build
22+
name: deploy to staging
1423
runs-on: ubuntu-latest
15-
Page: README.md
16-
runs-on: [ubuntu-latest, windows-latest, macOS-latest]
17-
Page: Index.md
24+
1825
# Controls when the workflow will defaults:
19-
26+
2027
on:
2128
# Triggers the workflow on push or pull request events but only for the "master" branch
2229
push:
@@ -32,7 +39,7 @@ jobs:
3239
# This workflow contains a single job called "build"
3340
build:
3441
# The type of runner that the job will run on
35-
runs-on: [ubuntu-latest, windows-latest, macOS-latest]
42+
runs-on: ubuntu-latest
3643

3744
# Steps represent a sequence of tasks that will be executed as part of the job
3845
steps:
@@ -54,24 +61,24 @@ jobs:
5461
jobs:
5562
my_job:
5663
name: deploy to staging
57-
runs-on: ubuntu-latest
58-
64+
runs-on: self-hosted
65+
5966
- name: Install Dependencies
6067
run: npm install
61-
68+
6269
test:
6370
name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }}
6471
runs-on: ${{ matrix.os }}
6572
strategy:
6673
matrix:
6774
node_version: ['8', '10', '12']
6875
os: [ubuntu-latest, windows-latest, macOS-latest]
69-
76+
7077
- name: Setup Node
7178
uses: actions/setup-node@v1
7279
with:
7380
node-version: '10.x'
74-
81+
7582
steps:
7683
- uses: actions/checkout@v1
7784
- name: Use Node.js ${{ matrix.node_version }}

0 commit comments

Comments
 (0)