Skip to content

Commit 9b2640b

Browse files
committed
chore: fix deploy to github-pages
Signed-off-by: Maximillian Arruda <[email protected]>
1 parent 7fe7b28 commit 9b2640b

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

.github/workflows/github-pages.yml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -27,35 +27,35 @@ jobs:
2727
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2828

2929
steps:
30-
- uses: actions/checkout@v3
31-
32-
- name: Cache node modules
33-
uses: actions/cache@v3
34-
with:
35-
path: ~/.npm
36-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
37-
restore-keys: |
38-
${{ runner.os }}-node-
30+
- uses: actions/checkout@v3
31+
32+
- name: Cache node modules
33+
uses: actions/cache@v3
34+
with:
35+
path: ~/.npm
36+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
37+
restore-keys: |
38+
${{ runner.os }}-node-
39+
40+
- name: Setup Node.js ${{ matrix.node-version }}
41+
uses: actions/setup-node@v3
42+
with:
43+
node-version: ${{ matrix.node-version }}
3944

40-
- name: Setup Node.js ${{ matrix.node-version }}
41-
uses: actions/setup-node@v3
42-
with:
43-
node-version: ${{ matrix.node-version }}
44-
45-
- name: Install Dependencies
46-
working-directory: ${{ matrix.workDir }}
47-
run: npm install
48-
49-
- name: Build Application
50-
working-directory: ${{ matrix.workDir }}
51-
run: npm run build -- --configuration=production --base-href=/${{ matrix.base_href }}/
52-
53-
- name: Deploy to GitHub
54-
uses: crazy-max/ghaction-github-pages@v3
55-
working-directory: ${{ matrix.workDir }}
56-
if: success()
57-
with:
58-
target_branch: gh-pages
59-
build_dir: dist
60-
env:
61-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
- name: Install Dependencies
46+
working-directory: ${{ matrix.workDir }}
47+
run: npm install
48+
49+
- name: Build Application
50+
working-directory: ${{ matrix.workDir }}
51+
run: npm run build -- --configuration=production --base-href=/${{ matrix.base_href }}/
52+
53+
- name: Deploy to GitHub
54+
uses: crazy-max/ghaction-github-pages@v3
55+
working-directory: ${{ matrix.workDir }}
56+
if: success()
57+
with:
58+
target_branch: gh-pages
59+
build_dir: dist
60+
env:
61+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)