Skip to content

Commit

Permalink
Merge pull request #2 from VGVentures/feat/github-pages
Browse files Browse the repository at this point in the history
feat: add deploy workflow
  • Loading branch information
mtwichel authored Jun 14, 2024
2 parents 630ac88 + 1abcd37 commit 0247ad0
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy to GitHub Pages

on:
# Trigger the workflow every time you push to the `main` branch
push:
branches: [main]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:

# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
- name: Install, build, and upload your site output
uses: withastro/action@v2

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@v4
1 change: 1 addition & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import tailwind from "@astrojs/tailwind";

// https://astro.build/config
export default defineConfig({
site: "https://VGVentures.github.io",
integrations: [
starlight({
favicon: "./public/favicon.png",
Expand Down

0 comments on commit 0247ad0

Please sign in to comment.