Skip to content

Commit

Permalink
Merge pull request #1 from 0xSpaceShard/develop
Browse files Browse the repository at this point in the history
feat: CI/CD pipeline
  • Loading branch information
Ioan Alexandru Oara authored Feb 7, 2024
2 parents e7b73f3 + 90a259e commit 7dd6a71
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/deploy-docusaurus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy Docusaurus to GitHub Pages

on:
push:
branches:
- main

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false

- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Install and Build
run: |
npm install
npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
22 changes: 22 additions & 0 deletions .github/workflows/deploy-vercel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Deploy to Vercel

on:
push:
branches:
- develop

jobs:
deploy-to-vercel:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install Vercel CLI
run: npm i -g vercel

- name: Deploy to Vercel
id: vercel-deploy
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
run: vercel -t $VERCEL_TOKEN --yes --prod
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ package-lock.json
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.vercel
2 changes: 1 addition & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const config = {
favicon: 'img/favicon.ico',

// Set the production url of your site here
url: 'https://www.nimbora.io/',
url: 'https://docs.nimbora.io/',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
Expand Down

0 comments on commit 7dd6a71

Please sign in to comment.