Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 6 additions & 12 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
name: Deploy to GitHub Pages

on:
# Trigger the workflow every time you push to the `main` branch
# Using a different branch name? Replace `main` with your branch’s name
push:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab on GitHub.
# Manual only — Netlify is primary host
workflow_dispatch:

# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
Expand All @@ -23,11 +19,9 @@ jobs:
- name: Install, build, and upload your site
uses: withastro/action@v3
# with:
# path: . # The root location of your Astro project inside the repository. (optional)
# node-version: 16 # The specific version of Node that should be used to build your site. Defaults to 16. (optional)
# package-manager: yarn # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)


# path: . # The root location of your Astro project inside the repository. (optional)
# node-version: 16 # The specific version of Node that should be used to build your site. Defaults to 16. (optional)
# package-manager: yarn # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)

deploy:
needs: build
Expand All @@ -38,4 +32,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ pnpm-debug.log*
# macOS-specific files
.DS_Store

*.code-workspace
*.code-workspace
# Local Netlify folder
.netlify
12 changes: 5 additions & 7 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import react from "@astrojs/react";
import icon from "astro-icon";

import sitemap from "@astrojs/sitemap";

// https://astro.build/config
import compressor from "astro-compressor";
import netlify from "@astrojs/netlify";

// https://astro.build/config
export default defineConfig({
site: "https://www.audacityteam.org",
adapter: netlify({ imageCDN: true }),
image: {
domains: ["i.ytimg.com"],
},
integrations: [
tailwind({
// Example: Disable injecting a basic `base.css` import on every page.
Expand All @@ -36,8 +37,5 @@ export default defineConfig({
"@datapunt/matomo-tracker-js",
],
},
build: {
assets: 'assets',
},
},
});
17 changes: 17 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[build]
command = "npm run build"
publish = "dist"

# Disable redundant post-processing (Astro already handles this)
[build.processing.css]
bundle = false
minify = false
[build.processing.js]
bundle = false
minify = false
[build.processing.images]
compress = false

# Allow external images through Netlify Image CDN
[images]
remote_images = ["https://i\\.ytimg\\.com/.*"]
Loading