Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fleek to ci #638

Merged
merged 23 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ jobs:
- run: yarn install --frozen-lockfile --verbose --network-concurrency 1

- run: yarn build
- name: Upload frontend build
uses: actions/upload-artifact@v4
with:
name: frontend
path: |
frontend/dist/spa
fleek.config.ts
tests:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -152,3 +159,24 @@ jobs:
cd contracts-periphery
scopelint --version
scopelint check

deploy-to-fleek:
needs: [build]
runs-on: ubuntu-latest
env:
FLEEK_TOKEN: ${{ secrets.FLEEK_TOKEN }}
FLEEK_PROJECT_ID: ${{ secrets.FLEEK_PROJECT_ID }}
steps:
- name: Download frontend
uses: actions/download-artifact@v4
with:
name: frontend
- uses: volta-cli/action@v4
with:
cache: false
- name: Look at directory
run: ls -la
- name: Install Fleek CLI
run: volta run yarn global add @fleekxyz/cli
- name: Build & deploy sites
run: volta run fleek sites deploy
10 changes: 10 additions & 0 deletions fleek.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { FleekConfig } from '@fleekxyz/cli';

export default {
"sites": [
{
"slug": "many-island-colossal",
"distDir": "./frontend/dist/spa"
}
]
} satisfies FleekConfig;
4 changes: 2 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build]
publish="frontend/dist/spa/"
environment = { NODE_VERSION = "16.15.0", YARN_VERSION = "1.22.18"}
environment = { NODE_VERSION = "18.17.0", YARN_VERSION = "1.22.18"}
command = "yarn build-frontend"
[build.processing]
skip_processing = true
skip_processing = true
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"devDependencies": {
"eslint": "^7.14.0",
"eslint-config-prettier": "^6.14.0",
"@fleekxyz/cli": "0.7.2",
"husky": "^4.3.0",
"lerna": "^3.22.1",
"lint-staged": "^10.5.1",
Expand Down
Loading
Loading