test: build debug #69
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 to Pages | |
env: | |
ASSET_PREFIX: "/" | |
on: | |
push: | |
branches: [main] | |
paths-ignore: | |
- ".gitlab-ci.yml" | |
- ".gitlab-ci-disabled.yml" | |
- "README.md" | |
- "COPYING" | |
- "docs/**" | |
- ".vscode/**" | |
- "scripts/**" | |
jobs: | |
build-push: | |
name: "Build & Push" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [lts/*] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "npm" | |
- name: Install yarn | |
run: npm install -g yarn | |
- name: Cache deps | |
uses: actions/cache@v2 | |
with: | |
path: | | |
./node_modules | |
./.yarn | |
./.next/cache | |
key: ${{ runner.os }}-modules-${{ hashFiles('./yarn.lock') }} | |
- name: Build & Push | |
run: | | |
git config --global user.name $GITHUB_ACTOR | |
git config --global user.email [email protected] | |
export NEXT_TELEMETRY_DISABLED=1 | |
./.ci/release.sh | |
pwd | |
ls -la | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: build | |
path: smartcontract-ui/.build/ |