-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added images folder for the event image for main severlessdays.io site.
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
Showing
35 changed files
with
4,531 additions
and
12,003 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"recommendations": ["astro-build.astro-vscode"], | ||
"unwantedRecommendations": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,47 @@ | ||
# dublin.serverlessdays.io | ||
# Astro Starter Kit: Minimal | ||
|
||
[](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/). | ||
[](https://stackblitz.com/github/withastro/astro/tree/latest/examples/minimal) | ||
[](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/minimal) | ||
[](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). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
} | ||
}); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.