Skip to content

Commit

Permalink
Merge pull request #47 from cognano/fix-deploy
Browse files Browse the repository at this point in the history
Upgrade react-loader-spinner
  • Loading branch information
linyows authored May 29, 2024
2 parents d3591bc + 2d5a824 commit b465dd0
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 295 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- main

jobs:
build:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
types: [completed]

jobs:
release:
build_and_deployment:
runs-on: ubuntu-latest
env:
NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }}
Expand Down Expand Up @@ -41,6 +41,7 @@ jobs:
run: |
yarn install
yarn add sharp --ignore-engines
- name: Run next build for english
run: |
yarn build
Expand All @@ -55,6 +56,7 @@ jobs:
local-dir: ./out/
exclude: |
ogimages/*-ja-*.png
- name: Run next build for japanese
run: |
yarn build
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ name: Staging
on:
repository_dispatch:
workflow_dispatch:
pull_request:
workflow_run:
workflows: ["Build"]
branches: [main]
types: [completed]

jobs:
staging:
build_and_deployment:
runs-on: ubuntu-latest
env:
NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }}
Expand Down Expand Up @@ -40,6 +42,7 @@ jobs:
run: |
yarn install
yarn add sharp --ignore-engines
- name: Run next build for english
run: |
yarn build
Expand All @@ -55,6 +58,7 @@ jobs:
local-dir: ./out/
exclude: |
ogimages/*-ja-*.png
- name: Run next build for japanese
run: |
yarn build
Expand All @@ -64,7 +68,7 @@ jobs:
- name: Deploy to stag.cognano.co.jp by FTP
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTPHOST }}
server: ${{ secrets.FTP_HOST }}
username: ${{ secrets.FTP_USER_STAG_JA }}
password: ${{ secrets.FTP_PASS_STAG_JA }}
local-dir: ./out/
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"react": "^18.2.0",
"react-cookie-consent": "^8.0.1",
"react-dom": "^18.1.0",
"react-loader-spinner": "^5.1.5",
"react-loader-spinner": "^6.1.6",
"react-modal": "^3.16.1",
"rotion": "^1.0.0",
"schema-dts": "^1.1.2",
Expand Down
Loading

0 comments on commit b465dd0

Please sign in to comment.