Skip to content

Commit 16bdd7b

Browse files
committed
Test
1 parent f502184 commit 16bdd7b

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/cd.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
# NOTE: Don't add other branches
66
branches:
7-
- develop
7+
- fix/prod-push
88

99
jobs:
1010
test_build:
@@ -13,16 +13,16 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v3
17-
- uses: actions/setup-node@v3
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v4
1818
with:
19-
node-version: '18.x'
19+
node-version: '20.x'
2020

2121
- name: Get yarn cache directory path
2222
id: yarn-cache-dir-path
2323
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
2424

25-
- uses: actions/cache@v3
25+
- uses: actions/cache@v4
2626
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
2727
with:
2828
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
@@ -40,12 +40,12 @@ jobs:
4040
NEXT_PRIVATE_STANDALONE: true
4141

4242
- name: Upload GH artifacts
43-
uses: actions/upload-pages-artifact@v1
43+
uses: actions/upload-pages-artifact@v2
4444
with:
4545
path: out/
4646

4747
- name: Upload artifacts
48-
uses: actions/upload-artifact@v3
48+
uses: actions/upload-artifact@v4
4949
with:
5050
path: out/
5151
name: client-build
@@ -68,20 +68,20 @@ jobs:
6868
steps:
6969
- name: Deploy to GitHub Pages 🚀
7070
id: deployment
71-
uses: actions/deploy-pages@v2
71+
uses: actions/deploy-pages@v4
7272

7373
prod_deploy:
7474
name: Deploy (PROD)
7575
needs: [test_build, staging_deploy]
7676
runs-on: ubuntu-latest
7777
if: github.event_name == 'push'
7878

79-
environment:
80-
name: prod
81-
url: https://togglecorp.com
79+
# environment:
80+
# name: prod
81+
# url: https://togglecorp.com
8282

8383
steps:
84-
- uses: actions/download-artifact@v3
84+
- uses: actions/download-artifact@v4
8585
with:
8686
name: client-build
8787
path: ./out

0 commit comments

Comments
 (0)