Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
alinasytnik committed Nov 19, 2023
1 parent 29d50f7 commit da3d04b
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 21 deletions.
54 changes: 33 additions & 21 deletions .github/workflows/fleek-deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,33 @@
# 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
# - name: Install Node.js
# uses: actions/setup-node@v3
# with:
# node-version: 19.8.1
# - name: Install Fleek CLI globally
# run: npm i -g @fleekxyz/cli
# - name: Install dependencies
# run: npm install
# - name: Build & deploy sites
# run: fleek sites deploy
name: Deploy Site on Fleek.xyz

on:
push:
branches:
- main

jobs:
deploy-to-fleek:
environment: production
runs-on: ubuntu-latest

env:
FLEEK_TOKEN: ${{ secrets.FLEEK_TOKEN }}
FLEEK_PROJECT_ID: ${{ secrets.FLEEK_PROJECT_ID }}

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 19.8.1

- name: Install Fleek CLI globally
run: npm i -g @fleekxyz/cli

- name: Install dependencies
run: npm install

- name: Deploy site via Fleek CLI
run: fleek sites deploy
9 changes: 9 additions & 0 deletions fleek.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"sites": [
{
"slug": "straight-telephone-crashing",
"distDir": "public",
"buildCommand": "npm install && npm run build"
}
]
}

0 comments on commit da3d04b

Please sign in to comment.