Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
linyows committed May 29, 2024
1 parent 79aafe3 commit 2d5a824
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 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
6 changes: 4 additions & 2 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
types: [completed]

jobs:
staging:
build_and_deployment:
runs-on: ubuntu-latest
env:
NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }}
Expand Down Expand Up @@ -42,6 +42,7 @@ jobs:
run: |
yarn install
yarn add sharp --ignore-engines
- name: Run next build for english
run: |
yarn build
Expand All @@ -57,6 +58,7 @@ jobs:
local-dir: ./out/
exclude: |
ogimages/*-ja-*.png
- name: Run next build for japanese
run: |
yarn build
Expand All @@ -66,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

0 comments on commit 2d5a824

Please sign in to comment.