Merge pull request #1 from ethereumjp/update/ci #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy site | ||
on: | ||
push: | ||
branches: main | ||
workflow_dispatch: | ||
jobs: | ||
ci: | ||
uses: ./.github/workflows/_ci.yml | ||
Check failure on line 10 in .github/workflows/deploy.yml GitHub Actions / .github/workflows/deploy.ymlInvalid workflow file
|
||
build-page: | ||
runs-on: ubuntu-latest | ||
needs: ci | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/configure-pages@v4 | ||
with: | ||
static_site_generator: next | ||
- uses: actions/cache@v4 | ||
with: | ||
path: | | ||
${{ github.workspace }}/node_modules | ||
${{ github.workspace }}/.yarn/cache | ||
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-nodemodules | ||
- name: build | ||
run: yarn build-static | ||
env: | ||
NODE_ENV: production | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: ./out | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
needs: build-page | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false |