Skip to content

Commit

Permalink
feat: Beam setup, sourcify abi import, auto-format
Browse files Browse the repository at this point in the history
  • Loading branch information
xtools-at committed Oct 20, 2023
1 parent f4dbda3 commit cdb64da
Show file tree
Hide file tree
Showing 25 changed files with 3,107 additions and 2,484 deletions.
83 changes: 42 additions & 41 deletions .github/workflows/deploy-to-pages.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
name: Deploy to Pages

env:
ASSET_PREFIX: '/'
ASSET_PREFIX: "/"

on:
push:
branches: [ main-disabled ]
branches: [main]
paths-ignore:
- '.gitlab-ci.yml'
- 'README.md'
- 'COPYING'
- 'docs/**'
- ".gitlab-ci.yml"
- ".gitlab-ci-disabled.yml"
- "README.md"
- "COPYING"
- "docs/**"

jobs:
build-push:
Expand All @@ -22,37 +23,37 @@ jobs:
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 $GITHUB_ACTOR@users.noreply.github.com
export NEXT_TELEMETRY_DISABLED=1
./.ci/release.sh
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: build
path: ./.build
- 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 $GITHUB_ACTOR@users.noreply.github.com
export NEXT_TELEMETRY_DISABLED=1
./.ci/release.sh
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: build
path: ./.build
4 changes: 1 addition & 3 deletions .gitlab-ci-disabled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ stages:
- build
- pages


build:
stage: build
image: node:lts
Expand All @@ -15,7 +14,7 @@ build:
artifacts:
paths:
- .build/
expire_in: 1 day
expire_in: 1 day
script:
- export NEXT_TELEMETRY_DISABLED=1
- ./.ci/build.sh
Expand All @@ -34,6 +33,5 @@ pages:
- ./.ci/ci-release.sh
- ls -la public


only:
- main
6 changes: 6 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"recommendations": [
"esbenp.prettier-vscode",
"streetsidesoftware.code-spell-checker"
]
}
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.tabSize": 2,
"json.format.enable": true
}
Loading

0 comments on commit cdb64da

Please sign in to comment.