Skip to content

Commit c038d09

Browse files
committed
deploy: Prepare for deploy
1 parent 3657469 commit c038d09

5 files changed

Lines changed: 42 additions & 86 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
1-
# name: Deploy to GitHub Pages
1+
name: Deploy to GitHub Pages
22

3-
# on:
4-
# # Trigger the workflow every time you push to the `main` branch
5-
# # Using a different branch name? Replace `main` with your branch’s name
6-
# push:
7-
# branches: [main]
8-
# # Allows you to run this workflow manually from the Actions tab on GitHub.
9-
# workflow_dispatch:
3+
on:
4+
# Trigger the workflow every time you push to the `main` branch
5+
# Using a different branch name? Replace `main` with your branch’s name
6+
push:
7+
branches: [main]
8+
# Allows you to run this workflow manually from the Actions tab on GitHub.
9+
workflow_dispatch:
1010

11-
# # Allow this job to clone the repo and create a page deployment
12-
# permissions:
13-
# contents: read
14-
# pages: write
15-
# id-token: write
11+
# Allow this job to clone the repo and create a page deployment
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
1616

17-
# jobs:
18-
# build:
19-
# runs-on: ubuntu-latest
20-
# steps:
21-
# - name: Checkout your repository using git
22-
# uses: actions/checkout@v5
23-
# - name: Install, build, and upload your site
24-
# uses: withastro/action@v5
25-
# # with:
26-
# # path: . # The root location of your Astro project inside the repository. (optional)
27-
# # node-version: 24 # The specific version of Node that should be used to build your site. Defaults to 22. (optional)
28-
# # package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
29-
# # build-cmd: pnpm run build # The command to run to build your site. Runs the package build script/task by default. (optional)
30-
# # env:
31-
# # PUBLIC_POKEAPI: 'https://pokeapi.co/api/v2' # Use single quotation marks for the variable value. (optional)
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout your repository using git
22+
uses: actions/checkout@v5
23+
- name: Install, build, and upload your site
24+
uses: withastro/action@v5
25+
# with:
26+
# path: . # The root location of your Astro project inside the repository. (optional)
27+
# node-version: 24 # The specific version of Node that should be used to build your site. Defaults to 22. (optional)
28+
# package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
29+
# build-cmd: pnpm run build # The command to run to build your site. Runs the package build script/task by default. (optional)
30+
# env:
31+
# PUBLIC_POKEAPI: 'https://pokeapi.co/api/v2' # Use single quotation marks for the variable value. (optional)
3232

33-
# deploy:
34-
# needs: build
35-
# runs-on: ubuntu-latest
36-
# environment:
37-
# name: github-pages
38-
# url: ${{ steps.deployment.outputs.page_url }}
39-
# steps:
40-
# - name: Deploy to GitHub Pages
41-
# id: deployment
42-
# uses: actions/deploy-pages@v4
33+
deploy:
34+
needs: build
35+
runs-on: ubuntu-latest
36+
environment:
37+
name: github-pages
38+
url: ${{ steps.deployment.outputs.page_url }}
39+
steps:
40+
- name: Deploy to GitHub Pages
41+
id: deployment
42+
uses: actions/deploy-pages@v4

README.md

Lines changed: 1 addition & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1 @@
1-
# Astro Starter Kit: Basics
2-
3-
```sh
4-
npm create astro@latest -- --template basics
5-
```
6-
7-
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
8-
9-
## 🚀 Project Structure
10-
11-
Inside of your Astro project, you'll see the following folders and files:
12-
13-
```text
14-
/
15-
├── public/
16-
│ └── favicon.svg
17-
├── src
18-
│   ├── assets
19-
│   │   └── astro.svg
20-
│   ├── components
21-
│   │   └── Welcome.astro
22-
│   ├── layouts
23-
│   │   └── Layout.astro
24-
│   └── pages
25-
│   └── index.astro
26-
└── package.json
27-
```
28-
29-
To learn more about the folder structure of an Astro project, refer to [our guide on project structure](https://docs.astro.build/en/basics/project-structure/).
30-
31-
## 🧞 Commands
32-
33-
All commands are run from the root of the project, from a terminal:
34-
35-
| Command | Action |
36-
| :------------------------ | :----------------------------------------------- |
37-
| `npm install` | Installs dependencies |
38-
| `npm run dev` | Starts local dev server at `localhost:4321` |
39-
| `npm run build` | Build your production site to `./dist/` |
40-
| `npm run preview` | Preview your build locally, before deploying |
41-
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
42-
| `npm run astro -- --help` | Get help using the Astro CLI |
43-
44-
## 👀 Want to learn more?
45-
46-
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
1+
Just do it.

astro.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import tailwindcss from "@tailwindcss/vite";
44

55
// https://astro.build/config
66
export default defineConfig({
7-
site: "http://knbit.edu.pl/website/",
7+
site: "http://knbit.edu.pl",
88
vite: {
99
plugins: [tailwindcss()],
1010
},

public/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
knbit.edu.pl

src/components/BitTreeScene.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
let bitLogoModel: THREE.Group | null = null;
5151

5252
loader.load(
53-
"/models/bit.glb",
53+
`/models/bit.glb`,
5454
(gltf) => {
5555
bitLogoModel = gltf.scene;
5656
bitLogoModel.rotation.x = -0.3;

0 commit comments

Comments
 (0)