Skip to content

Commit fe87e59

Browse files
committed
Add GitHub Actions deploy workflow and update site config
Introduces a GitHub Actions workflow for deploying to GitHub Pages. Updates Docusaurus configuration with new site title, tagline, production URL, organization and project names, and disables trailing slashes.
1 parent 4195499 commit fe87e59

File tree

2 files changed

+41
-6
lines changed

2 files changed

+41
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main # ou 'master', verifique o nome da sua branch principal
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
deploy:
13+
name: Deploy to GitHub Pages
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: 18
20+
cache: npm
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Build website
26+
run: npm run build
27+
28+
- name: Deploy to GitHub Pages
29+
uses: peaceiris/actions-gh-pages@v3
30+
with:
31+
github_token: ${{ secrets.GITHUB_TOKEN }}
32+
publish_dir: ./build
33+
user_name: 'github-actions[bot]'
34+
user_email: 'github-actions[bot]@users.noreply.github.com'

docusaurus.config.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import type * as Preset from '@docusaurus/preset-classic';
55
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
66

77
const config: Config = {
8-
title: 'My Site',
9-
tagline: 'Dinosaurs are cool',
8+
title: 'Viglet Docs',
9+
tagline: 'Viglet Documentation',
1010
favicon: 'img/favicon.ico',
1111

1212
// Future flags, see https://docusaurus.io/docs/api/docusaurus-config#future
@@ -15,15 +15,16 @@ const config: Config = {
1515
},
1616

1717
// Set the production url of your site here
18-
url: 'https://your-docusaurus-site.example.com',
18+
url: 'https://docs-react.viglet.com',
1919
// Set the /<baseUrl>/ pathname under which your site is served
2020
// For GitHub pages deployment, it is often '/<projectName>/'
2121
baseUrl: '/',
22-
22+
23+
trailingSlash: false,
2324
// GitHub pages deployment config.
2425
// If you aren't using GitHub pages, you don't need these.
25-
organizationName: 'facebook', // Usually your GitHub org/user name.
26-
projectName: 'docusaurus', // Usually your repo name.
26+
organizationName: 'openviglet', // Usually your GitHub org/user name.
27+
projectName: 'docs-react', // Usually your repo name.
2728

2829
onBrokenLinks: 'throw',
2930

0 commit comments

Comments
 (0)