-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert indentations to spaces on workflow files
- Loading branch information
1 parent
9a3ca31
commit 17f8d29
Showing
2 changed files
with
58 additions
and
58 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,51 @@ | ||
name: deploy-to-github-pages | ||
on: | ||
push: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: setup node/pnpm and install dependencies | ||
uses: ./.github/workflows/setup-node-pnpm | ||
- name: setup node/pnpm and install dependencies | ||
uses: ./.github/workflows/setup-node-pnpm | ||
|
||
- name: setup pages | ||
uses: actions/configure-pages@v4 | ||
with: | ||
static_site_generator: next | ||
- name: setup pages | ||
uses: actions/configure-pages@v4 | ||
with: | ||
static_site_generator: next | ||
|
||
- name: build nextjs | ||
run: npx next build | ||
- name: build nextjs | ||
run: npx next build | ||
|
||
- name: upload | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: ./out | ||
- name: upload | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: ./out | ||
|
||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
|
||
runs-on: ubuntu-latest | ||
needs: build | ||
runs-on: ubuntu-latest | ||
needs: build | ||
|
||
steps: | ||
- name: publish to github pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 | ||
steps: | ||
- name: publish to github pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
name: setup-node-pnpm | ||
description: "Setup node.js & install/cache dependencies with pnpm" | ||
runs: | ||
using: composite | ||
using: composite | ||
|
||
steps: | ||
- name: setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: lts | ||
steps: | ||
- name: setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: lts | ||
|
||
- name: setup pnpm | ||
uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
run_install: false | ||
- name: setup pnpm | ||
uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
run_install: false | ||
|
||
- name: get pnpm store dir | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | ||
- name: get pnpm store dir | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | ||
- name: cache dependencies in pnpm | ||
with: | ||
path: ${{ env.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: cache dependencies in pnpm | ||
with: | ||
path: ${{ env.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: install dependencies in pnpm | ||
run: pnpm install | ||
- name: install dependencies in pnpm | ||
run: pnpm install |