Skip to content

Commit 17c8a9e

Browse files
chore: update github actions conig
1 parent 6c86c4b commit 17c8a9e

File tree

4 files changed

+34
-86
lines changed

4 files changed

+34
-86
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
name: "CodeQL"
1+
name: CodeQL
22

33
on:
44
push:
5-
branches: [ main ]
65
pull_request:
7-
branches: [ main ]
86
schedule:
97
- cron: '24 14 * * 6'
108

@@ -21,16 +19,16 @@ jobs:
2119
fail-fast: false
2220
matrix:
2321
language: [ 'javascript' ]
24-
22+
2523
steps:
2624
- name: Checkout code
2725
uses: actions/checkout@v2
2826

2927
- name: Initialize CodeQL
3028
uses: github/codeql-action/init@v1
3129
with:
32-
languages: ${{ matrix.language }}
33-
30+
languages: ${{matrix.language}}
31+
3432
- name: Autobuild
3533
uses: github/codeql-action/autobuild@v1
3634

.github/workflows/deploy.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
tags:
11+
- v*
12+
13+
jobs:
14+
deploy:
15+
needs: build
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- name: Heroku deploy
21+
uses: akhileshns/[email protected]
22+
with:
23+
heroku_email: '[email protected]'
24+
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
25+
heroku_app_name: ${{secrets.APP_NAME}}
26+
branch: 'main'

.github/workflows/main.yml

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
1-
name: Main Workflow
1+
name: Main
22

3-
on:
4-
push:
5-
branches:
6-
- main
7-
- feat/*
8-
pull_request:
9-
branches:
10-
- main
11-
- feat/*
3+
on: [push, pull_request]
124

135
jobs:
146
build:
@@ -36,9 +28,9 @@ jobs:
3628
id: yarn-cache
3729
with:
3830
path: ~/.cache/yarn/v6
39-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
31+
key: ${{runner.os}}-yarn-${{hashFiles('**/yarn.lock')}}
4032
restore-keys: |
41-
${{ runner.os }}-yarn-
33+
${{runner.os}}-yarn-
4234
4335
- name: Install dependencies
4436
run: yarn install --prefer-offline --frozen-lockfile --cache-folder ~/.cache/yarn/v6
@@ -61,17 +53,3 @@ jobs:
6153
uses: coverallsapp/github-action@master
6254
with:
6355
github-token: ${{secrets.GITHUB_TOKEN}}
64-
65-
deploy:
66-
needs: build
67-
runs-on: ubuntu-latest
68-
steps:
69-
- uses: actions/checkout@v2
70-
71-
- name: Heroku deploy
72-
uses: akhileshns/[email protected]
73-
with:
74-
heroku_email: '[email protected]'
75-
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
76-
heroku_app_name: ${{secrets.APP_NAME}}
77-
branch: 'main'

.github/workflows/new-features.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)