Update deploy workflow
This commit is contained in:
rodič
bfc5fed5ae
revize
9c6eda7673
|
@ -24,15 +24,12 @@ jobs:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
working-directory: ./website
|
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ./website
|
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Add custom domain
|
- name: Add custom domain
|
||||||
working-directory: ./website
|
|
||||||
run: "touch build/CNAME && echo \"dev.prgblockweek.com\" >> build/CNAME"
|
run: "touch build/CNAME && echo \"dev.prgblockweek.com\" >> build/CNAME"
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
|
@ -43,4 +40,4 @@ jobs:
|
||||||
if: ${{ github.ref == 'refs/heads/main' }}
|
if: ${{ github.ref == 'refs/heads/main' }}
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
publish_dir: ./website/build
|
publish_dir: ./build
|
||||||
|
|
Načítá se…
Odkázat v novém úkolu