Skip to content

Commit

Permalink
update to astro 4; attempt new deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaumohl committed Jun 21, 2024
1 parent 7bc99ff commit 77a26e9
Show file tree
Hide file tree
Showing 15 changed files with 7,354 additions and 4,037 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy to GitHub Pages

on:
push:
branches: [ main ]

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
uses: withastro/action@v2
with:
node-version: 20

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: https://www.madhacks.io
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ pnpm-debug.log*

# macOS-specific files
.DS_Store

.astro
.vscode
4 changes: 0 additions & 4 deletions .vscode/extensions.json

This file was deleted.

11 changes: 0 additions & 11 deletions .vscode/launch.json

This file was deleted.

7 changes: 3 additions & 4 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { defineConfig } from 'astro/config';
import tailwind from "@astrojs/tailwind";
import image from "@astrojs/image";
import compress from "astro-compress";
import sitemap from "@astrojs/sitemap";

// https://astro.build/config
export default defineConfig({
integrations: [tailwind(), image({
serviceEntryPoint: "@astrojs/image/sharp"
}), compress()]
site: 'https://www.madhacks.io',
integrations: [sitemap(), tailwind(), compress()]
});
Loading

0 comments on commit 77a26e9

Please sign in to comment.