Compare commits
2 Commits
ac9ab52d63
...
32a150c0ce
| Author | SHA1 | Date | |
|---|---|---|---|
| 32a150c0ce | |||
| 5258627fa9 |
@@ -1,4 +1,4 @@
|
||||
name: Deploy Astro
|
||||
name: Deploy Dev Website
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
@@ -9,13 +9,13 @@ jobs:
|
||||
name: Build and Deploy
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
services:
|
||||
mermaid:
|
||||
image: yuzutech/kroki-mermaid
|
||||
kroki:
|
||||
image: yuzutech/kroki
|
||||
env:
|
||||
KROKI_MERMAID_HOST: mermaid
|
||||
# services:
|
||||
# mermaid:
|
||||
# image: yuzutech/kroki-mermaid
|
||||
# kroki:
|
||||
# image: yuzutech/kroki
|
||||
# env:
|
||||
# KROKI_MERMAID_HOST: mermaid
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -41,6 +41,6 @@ jobs:
|
||||
username: ${{ secrets.SSH_USERNAME }}
|
||||
key: ${{ secrets.SSH_KEY }}
|
||||
source: "dist/*"
|
||||
target: /srv/website/dev
|
||||
target: /srv/website/stable
|
||||
overwrite: true
|
||||
strip_components: 1
|
||||
|
||||
46
.gitea/workflows/stable.yml
Normal file
46
.gitea/workflows/stable.yml
Normal file
@@ -0,0 +1,46 @@
|
||||
name: Deploy Stable Website
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- senpai
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
name: Build and Deploy
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# services:
|
||||
# mermaid:
|
||||
# image: yuzutech/kroki-mermaid
|
||||
# kroki:
|
||||
# image: yuzutech/kroki
|
||||
# env:
|
||||
# KROKI_MERMAID_HOST: mermaid
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
name: Checkout code
|
||||
|
||||
- name: Setup node and npm
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: lts/*
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Check and build
|
||||
run: npm run build
|
||||
# env:
|
||||
# KROKI_SERVER: "http://kroki:8000"
|
||||
|
||||
- name: Copy files via ssh
|
||||
uses: appleboy/scp-action@v1
|
||||
with:
|
||||
host: c0ntroller.de
|
||||
username: ${{ secrets.SSH_USERNAME }}
|
||||
key: ${{ secrets.SSH_KEY }}
|
||||
source: "dist/*"
|
||||
target: /srv/website/dev
|
||||
overwrite: true
|
||||
strip_components: 1
|
||||
46
README.md
46
README.md
@@ -1,43 +1,13 @@
|
||||
# Astro Starter Kit: Minimal
|
||||
# Frontpage
|
||||
|
||||
```sh
|
||||
npm create astro@latest -- --template minimal
|
||||
```
|
||||
[](https://c0ntroller.de/portfolio/astro-rewrite/)
|
||||
|
||||
> 🧑🚀 **Seasoned astronaut?** Delete this file. Have fun!
|
||||
| Stable | Dev
|
||||
| ------ | ---
|
||||
| [](https://c0ntroller.de/) | [](https://dev.c0ntroller.de/)
|
||||
|
||||
## 🚀 Project Structure
|
||||
This repository contains my Astro-based website.
|
||||
|
||||
Inside of your Astro project, you'll see the following folders and files:
|
||||
When changes are made to `senpai` it will be deploy on https://c0ntroller.de
|
||||
|
||||
```text
|
||||
/
|
||||
├── 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.
|
||||
|
||||
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
|
||||
|
||||
Any static assets, like images, can be placed in the `public/` directory.
|
||||
|
||||
## 🧞 Commands
|
||||
|
||||
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:4321` |
|
||||
| `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 |
|
||||
|
||||
## 👀 Want to learn more?
|
||||
|
||||
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
|
||||
When changes are made in the `dev` branch it will be deployed on https://dev.c0ntroller.de
|
||||
|
||||
Reference in New Issue
Block a user