Skip to content
Draft
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
31 changes: 15 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@ name: Build & Deploy

on:
push:
branches: [ master ]
branches: [main]
pull_request:
branches: [ master ]
schedule:
- cron: "0 0 * * *"
branches: [main]
schedule:
- cron: '0 0 * * *'
workflow_dispatch:


permissions:
contents: read
pages: write
Expand All @@ -20,22 +19,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v2-beta
- uses: actions/setup-node@v4
with:
node-version: '12'
- name: Hugo setup
uses: peaceiris/[email protected]
node-version: '22'
- uses: pnpm/action-setup@v4
with:
hugo-version: 0.76.5
extended: true
- name: NPM install
run: npm install
- name: Build
run: npm run build
version: latest
- name: Install dependencies
run: pnpm install
- name: Lint code
run: pnpm run lint
- name: Build with Astro
run: pnpm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public
path: ./dist
deploy:
environment:
name: github-pages
Expand Down
131 changes: 14 additions & 117 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,127 +1,24 @@
# build output
dist/
# generated types
.astro/

# Created by https://www.toptal.com/developers/gitignore/api/hugo
# Edit at https://www.toptal.com/developers/gitignore?templates=hugo

### Hugo ###
# Generated files by hugo
/public/
/resources/_gen/
/assets/jsconfig.json
hugo_stats.json

# Executable may be added to repository
hugo.exe
hugo.darwin
hugo.linux

# Temporary lock file while building
/.hugo_build.lock

# End of https://www.toptal.com/developers/gitignore/api/hugo


# dependencies
node_modules/

### Node ###
# Logs
logs
*.log
# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/
pnpm-debug.log*

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
# environment variables
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# End of https://www.gitignore.io/api/node


vendor/
static/css/style.css
static/css/style.css.map

public/

static/js/bootstrap.min.js
.env.production

static/files
# macOS-specific files
.DS_Store

resources/
# jetbrains setting folder
.idea/
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
.astro
src/public
package.json
package-lock.json
package-lock.yaml
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
# Web&Wine Website

This website is deployed [here](https://webandwine.org/) once a day. The information about the meetups is fetched from meetup.com and then rendered statically.

# Adding a sponsor
## Adding a sponsor

See here an example commit of adding a sponsor: [Add Typedigital as sponsor](https://github.com/web-and-wine/www/commit/3a8cd65d933986a35c821b0cf074058c64fc977c)

# Building
## Contributing

- node
- pnpm

```
npm install
hugo
pnpm install
pnpm dev
```
5 changes: 0 additions & 5 deletions archetypes/default.md

This file was deleted.

17 changes: 0 additions & 17 deletions assets/base-style.scss

This file was deleted.

90 changes: 0 additions & 90 deletions assets/content-style.scss

This file was deleted.

22 changes: 0 additions & 22 deletions assets/style.scss

This file was deleted.

9 changes: 9 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// @ts-check
import { defineConfig } from 'astro/config';

import svelte from '@astrojs/svelte';

// https://astro.build/config
export default defineConfig({
integrations: [svelte()],
});
22 changes: 0 additions & 22 deletions config.toml

This file was deleted.

Loading