Skip to content

Commit

Permalink
feat: add fleek cli and pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
toniocodo committed Oct 17, 2023
1 parent d4ff8cd commit e0e08d3
Show file tree
Hide file tree
Showing 4 changed files with 490 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/fleek-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: ⚡ Deploy site via Fleek

on: push

jobs:
deploy-to-fleek:
runs-on: ubuntu-latest
env:
FLEEK_TOKEN: ${{ secrets.FLEEK_TOKEN }}
FLEEK_PROJECT_ID: ${{ secrets.FLEEK_PROJECT_ID }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install dependencies
uses: pnpm/action-setup@v2
with:
version: 8
run_install: true

- name: Build & deploy sites
run: fleek sites deploy
11 changes: 11 additions & 0 deletions fleek.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { FleekConfig } from '@fleekxyz/cli';

export default {
sites: [
{
slug: 'defi-oeth',
distDir: '/dist/apps/oeth',
buildCommand: 'pnpm nx build oeth',
},
],
} satisfies FleekConfig;
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"@babel/core": "^7.23.0",
"@babel/preset-react": "^7.22.15",
"@faker-js/faker": "^8.1.0",
"@fleekxyz/cli": "^0.7.1",
"@formatjs/cli": "^6.2.0",
"@graphql-codegen/cli": "^5.0.0",
"@graphql-codegen/near-operation-file-preset": "^3.0.0",
Expand Down
Loading

0 comments on commit e0e08d3

Please sign in to comment.