mirror of
https://github.com/LucasVbr/notion-widgets.git
synced 2026-05-13 17:21:55 +00:00
Configure GithubPages with Astro
This commit is contained in:
@@ -0,0 +1,40 @@
|
|||||||
|
name: GitHub Pages Astro CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
# Déclenchez le workflow chaque fois que vous poussez vers la branche `main`
|
||||||
|
# Vous utilisez un nom de branche différent ? Remplacez `main` par le nom de votre branche
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
# Vous permet d'exécuter ce workflow manuellement à partir de l'onglet Actions sur GitHub.
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
# Autoriser cette tâche à cloner le dépôt et à créer un déploiement de page
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout your repository using git
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Install, build, and upload your site
|
||||||
|
uses: withastro/action@v0
|
||||||
|
# with:
|
||||||
|
# path: . # L'emplacement racine de votre projet Astro dans le dépôt. (facultatif)
|
||||||
|
# node-version: 16 # La version spécifique de Node qui doit être utilisée pour build votre site. La valeur par défaut est 16. (facultatif)
|
||||||
|
# package-manager: yarn # Le gestionnaire de paquets Node qui doit être utilisé pour installer les dépendances et build votre site. Détecté automatiquement en fonction de votre lockfile. (facultatif)
|
||||||
|
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
needs: build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
steps:
|
||||||
|
- name: Deploy to GitHub Pages
|
||||||
|
id: deployment
|
||||||
|
uses: actions/deploy-pages@v1
|
||||||
+3
-1
@@ -4,5 +4,7 @@ import tailwind from "@astrojs/tailwind";
|
|||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
integrations: [tailwind()]
|
integrations: [tailwind()],
|
||||||
|
site: 'https://lucasvbr.github.io',
|
||||||
|
base: '/notion-widgets',
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user