Skip to content

Commit

Permalink
Add deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
0xblobs committed Jan 8, 2024
1 parent 7243163 commit 8a9f2ff
Show file tree
Hide file tree
Showing 3 changed files with 8,381 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/gh-pages-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Github Pages Deploy
on:
workflow_dispatch:
push:
branches:
- main

jobs:
build:
if: github.repository == 'crustio/ethda-docs'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]

- name: Setup Node v18
uses: actions/setup-node@v1
with:
node-version: v18.18.0

- name: Install dependencies
uses: borales/[email protected]
with:
cmd: install

- name: Build for production
uses: borales/[email protected]
with:
cmd: build

- name: Deploy Gh-Pages 🚀
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
cname: docs.ethda.io
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ethda-docs",
"version": "0.0.0",
"version": "1.0.0",
"private": true,
"scripts": {
"docusaurus": "docusaurus",
Expand Down
Loading

0 comments on commit 8a9f2ff

Please sign in to comment.