|
1 | 1 | # This is a basic workflow to help you get started with Actions
|
2 | 2 |
|
3 | 3 | name: Github Pages Deploy
|
4 |
| -env: |
5 |
| - API_KEY: ${{ secrets.API_KEY }} |
6 |
| -# Controls when the action will run. |
| 4 | +env: |
| 5 | + API_KEY: ${{ secrets.API_KEY }} |
| 6 | +# Controls when the action will run. |
7 | 7 | on:
|
8 |
| - # Triggers the workflow on push or pull request events but only for the master branch |
9 |
| - push: |
10 |
| - branches: [ master ] |
11 |
| - |
12 |
| - # Allows you to run this workflow manually from the Actions tab |
13 |
| - workflow_dispatch: |
| 8 | + # Triggers the workflow on push or pull request events but only for the master branch |
| 9 | + push: |
| 10 | + branches: [master] |
| 11 | + |
| 12 | + # Allows you to run this workflow manually from the Actions tab |
| 13 | + workflow_dispatch: |
14 | 14 |
|
15 | 15 | # A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
16 | 16 | jobs:
|
17 |
| - # This workflow contains a single job called "build" |
18 |
| - build: |
19 |
| - # The type of runner that the job will run on |
20 |
| - runs-on: ubuntu-latest |
21 |
| - |
22 |
| - strategy: |
23 |
| - matrix: |
24 |
| - node-version: [14.x] |
25 |
| - |
| 17 | + # This workflow contains a single job called "build" |
| 18 | + build: |
| 19 | + # The type of runner that the job will run on |
| 20 | + runs-on: ubuntu-latest |
| 21 | + |
| 22 | + strategy: |
| 23 | + matrix: |
| 24 | + node-version: [14.x] |
26 | 25 |
|
27 |
| - # Steps represent a sequence of tasks that will be executed as part of the job |
28 |
| - steps: |
29 |
| - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it |
30 |
| - - name: Checkout |
31 |
| - uses: actions/checkout@v2 |
| 26 | + # Steps represent a sequence of tasks that will be executed as part of the job |
| 27 | + steps: |
| 28 | + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it |
| 29 | + - name: Checkout |
| 30 | + uses: actions/checkout@v2 |
32 | 31 |
|
33 |
| - # Runs commands using the runners shell |
34 |
| - - name: Install and Build |
35 |
| - run: npm install && npm run build |
36 |
| - |
37 |
| - - name: Deploy |
38 |
| - uses: JamesIves/github-pages-deploy-action@4.1.3 |
39 |
| - with: |
40 |
| - branch: gh-pages # The branch the action should deploy to. |
41 |
| - folder: build # The folder the action should deploy. |
| 32 | + # Runs commands using the runners shell |
| 33 | + - name: Install and Build |
| 34 | + run: npm install && npm run build |
42 | 35 |
|
| 36 | + - name: Deploy |
| 37 | + uses: JamesIves/github-pages-deploy-action@4.1.3 |
| 38 | + with: |
| 39 | + branch: gh-pages # The branch the action should deploy to. |
| 40 | + folder: build # The folder the action should deploy. |
0 commit comments