Skip to content

Commit

Permalink
added images folder for the event image for main severlessdays.io site.
Browse files Browse the repository at this point in the history
Added github action

Testing some changes to try the deployment

Moved to Astro

Updated ci

Tests only if present + pun

Added CNAME for gh-pages

Global stylesheet

Using a different gh action for publushing gh pages

Release only if master

main not master

Responsive image

Trying with public

Cleanup
  • Loading branch information
simonjgr authored and lmammino committed Mar 11, 2023
1 parent e112c41 commit 0bbae3f
Show file tree
Hide file tree
Showing 35 changed files with 4,531 additions and 12,003 deletions.
44 changes: 0 additions & 44 deletions .circleci/config.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Deploy

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: "🛎️ Checkout"
uses: actions/checkout@v3

- name: "⬢ Use Node 18"
uses: actions/setup-node@v1
with:
node-version: 18.x

- name: Use cached node_modules
uses: actions/cache@v1
with:
path: node_modules
key: nodeModules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
nodeModules-
- name: "🔧 Install, test, build"
run: |
npm install
npm --if-present test
npm run build
env:
CI: true

- name: "🚀 Deploy"
if: github.ref == 'refs/heads/main'
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist
71 changes: 14 additions & 57 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,64 +1,21 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# 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

# nyc test coverage
.nyc_output

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

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

# node-waf configuration
.lock-wscript
# build output
dist/
# generated types
.astro/

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

# Dependency directories
# dependencies
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz
# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
# environment variables
.env
.env.production

# next.js build output
.next

public/
.cache/
# macOS-specific files
.DS_Store
4 changes: 4 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"recommendations": ["astro-build.astro-vscode"],
"unwantedRecommendations": []
}
11 changes: 11 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
"request": "launch",
"type": "node-terminal"
}
]
}
62 changes: 33 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,47 @@
# dublin.serverlessdays.io
# Astro Starter Kit: Minimal

[![CircleCI](https://circleci.com/gh/serverlessdays-dublin/dublin.serverlessdays.io.svg?style=shield)](https://circleci.com/gh/serverlessdays-dublin/dublin.serverlessdays.io)

Website for ServerlessDays Dublin


## Currently work in progress

This website is currently in highly development, so don't play too much with it just now, or at least, keep on hold your expectations... 😅


## Commands for build and deployment

This website is currently built using [GatsbyJs](https://www.gatsbyjs.org).
The build process will create a static website (only HTML, CSS and JS files) that can be easily hosted.

### Development
```
npm create astro@latest -- --template minimal
```

In order to start the development environment you can run `npm run devel` (or `npm run development` if you like longer commands). This will bootstrap a live-reloading development web server on port [`8000`](http://localhost:8000/).
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/minimal)
[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/minimal)
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/minimal/devcontainer.json)

> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
### Production Build
## 🚀 Project Structure

In case you want to see how a production build looks like (which you don't really have to do, unless you are curious, because the CI will do that for you), you can run `npm run build`. This command will emit the static version of the website in the `public` folder.
Inside of your Astro project, you'll see the following folders and files:

If you want to run this on a local webserver you can run `npm start`, which will show the last build on port [`9000`](http://localhost:9000/).
```
/
├── public/
├── src/
│ └── pages/
│ └── index.astro
└── package.json
```

Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.

## Website publishing
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.

The website is auto-magically™️ built and published every time there's a push on the Master branch.
Any static assets, like images, can be placed in the `public/` directory.

If you are curious to know how this works, you can have a look at our [CircleCI config](/.circleci/config.yml).
## 🧞 Commands

Website is published on GitHub pages from the branch [`gh-pages`](https://github.com/serverlessdays-dublin/dublin.serverlessdays.io/tree/gh-pages) using the command line utility [`gh-pages`](http://npm.im/gh-pages).
All commands are run from the root of the project, from a terminal:

| Command | Action |
| :--------------------- | :----------------------------------------------- |
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `localhost:3000` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `npm run astro --help` | Get help using the Astro CLI |

## That's all folks
## 👀 Want to learn more?

```
ヽ(o^▽^o)ノ
```
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
8 changes: 8 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineConfig } from 'astro/config';

// https://astro.build/config
export default defineConfig({
build: {
assets: 'public'
}
});
8 changes: 0 additions & 8 deletions gatsby-config.js

This file was deleted.

Loading

0 comments on commit 0bbae3f

Please sign in to comment.