Skip to content

Commit

Permalink
ci: refining Korean site publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
mtiller committed Aug 31, 2023
1 parent ce855eb commit 77b913a
Showing 1 changed file with 44 additions and 3 deletions.
47 changes: 44 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,54 @@ jobs:
path: text/results/exes.tar.gz
- name: Generate JSON
run: make env json
- name: Publish Korean Site
run: make korean_site
image: node:12
- name: Archive Build Artifacts
uses: actions/upload-artifact@v3
with:
name: build-artifacts
path: text/build
- name: Save DVC Cache
id: dvc-cache-save
uses: actions/cache/save@v3
with:
path: |
.dvc/cache
key: dvc-cache-key
generate_korean_site:
runs-on: ubuntu-latest
container:
image: node:12
steps:
- name: Mark checkout directory as safe
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Checkout Repository
uses: actions/checkout@v3
- name: Download Build Artifacts
uses: actions/download-artifact@v3
with:
name: build-artifacts
- name: Publish Korean Site
run: make korean_site
image: node:12
- name: Archive Korean Site
uses: actions/upload-artifact@v3
with:
name: korean-site
path: out

publish_korean_site:
runs-on: ubuntu-latest
container:
image: node:18
steps:
- name: Mark checkout directory as safe
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Checkout Repository
uses: actions/checkout@v3
- name: Download Korean Site
uses: actions/download-artifact@v3
with:
name: korean-site
- name: Install netlify-cli
run: npm install -g netlify-cli
- name: Deploy Korean Site
run: npx netlify deploy --prod --dir=out

0 comments on commit 77b913a

Please sign in to comment.