summaryrefslogtreecommitdiff
path: root/.github/workflows/cd.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/cd.yml')
-rw-r--r--.github/workflows/cd.yml27
1 files changed, 14 insertions, 13 deletions
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml
index 21aafd9..2691d91 100644
--- a/.github/workflows/cd.yml
+++ b/.github/workflows/cd.yml
@@ -4,7 +4,7 @@
name: 'cd'
on:
push:
- branches: [main]
+ branches: [main]
defaults:
run:
shell: 'bash'
@@ -14,16 +14,16 @@ jobs:
outputs:
ts: ${{ steps.filter.outputs.ts }}
steps:
- - uses: actions/checkout@v2
- - name: '[check if build necessary]'
- uses: dorny/paths-filter@v2
- id: filter
- with:
- filters: |
- ts:
- - '**.ts'
- - '**.tsx'
- - '**.json'
+ - uses: actions/checkout@v2
+ - name: '[check if build necessary]'
+ uses: dorny/paths-filter@v2
+ id: filter
+ with:
+ filters: |
+ ts:
+ - '**.ts'
+ - '**.tsx'
+ - '**.json'
build-deploy:
name: '[cd|build-deploy]'
runs-on: 'ubuntu-latest'
@@ -45,8 +45,9 @@ jobs:
git config --global url."https://github.com/".insteadOf ssh://[email protected]/
git config --global url."https://".insteadOf git://
git config --global url."https://".insteadOf ssh://
- yarn
- yarn build
+ npm install
+ npm run build
+ npm run export
- name: '[commit changes]'
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"