Skip to content

Commit 460c3ec

Browse files
committed
Add workflow for GitHub Pages
1 parent 6f63635 commit 460c3ec

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
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: [ main ]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
jobs:
14+
build:
15+
if: ${{ github.repository_owner == 'multitheftauto' }}
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout your repository using git
19+
uses: actions/checkout@v4
20+
- name: Install, build, and upload your site
21+
uses: withastro/action@v3
22+
with:
23+
path: docs
24+
25+
deploy:
26+
needs: build
27+
runs-on: ubuntu-latest
28+
environment:
29+
name: github-pages
30+
url: ${{ steps.deployment.outputs.page_url }}
31+
steps:
32+
- name: Deploy to GitHub Pages
33+
id: deployment
34+
uses: actions/deploy-pages@v4

docs/astro.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ import mtasaStartlightThemePlugin from 'starlight-theme-mtasa'
55

66
// https://astro.build/config
77
export default defineConfig({
8+
site: 'https://multitheftauto.github.io',
9+
base: 'starlight-theme-mtasa',
810
integrations: [
911
starlight({
10-
title: 'Multi Theft Auto',
12+
title: 'Multi Theft Auto: Theme',
1113
plugins: [mtasaStartlightThemePlugin()],
1214
social: {
1315
github: 'https://github.com/withastro/starlight',

0 commit comments

Comments
 (0)