Skip to content

Commit 9b735b5

Browse files
authored
Merge pull request #2 from Ecuador-In-Tech/development
To the moon! Setup to deploy in GH pages
2 parents bf5d12e + f1c9c2b commit 9b735b5

File tree

6 files changed

+43
-11
lines changed

6 files changed

+43
-11
lines changed

.github/workflows/deploy.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy to GitHub Pages
2+
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:
10+
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
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout your repository using git
22+
uses: actions/checkout@v4
23+
- name: Install, build, and upload your site
24+
uses: withastro/action@v3
25+
# with:
26+
# path: . # The root location of your Astro project inside the repository. (optional)
27+
# node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 20. (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+
30+
deploy:
31+
needs: build
32+
runs-on: ubuntu-latest
33+
environment:
34+
name: github-pages
35+
url: ${{ steps.deployment.outputs.page_url }}
36+
steps:
37+
- name: Deploy to GitHub Pages
38+
id: deployment
39+
uses: actions/deploy-pages@v4

astro.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ import alpinejs from '@astrojs/alpinejs';
77

88
// https://astro.build/config
99
export default defineConfig({
10+
site: "https://ecuadorintech.org",
1011
integrations: [tailwind(), alpinejs()]
1112
});

public/favicon.svg

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/assets/events.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"place": "Online",
1010
"modality": "Virtual",
1111
"hostedBy": "Ecuador In Tech",
12-
"image": "src/assets/github-workshop.jpg",
12+
"image": "/github-workshop.jpg",
1313
"attendees": 31
1414
}
1515
]

src/components/AboutUs.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
import heroImage from '../assets/hacktoberfest.jpg'
23
34
---
45

@@ -23,7 +24,7 @@
2324
</div>
2425
<div class="bg-gray-200 h-64 rounded-lg">
2526
<img
26-
src="src/assets/hacktoberfest.jpg"
27+
src={heroImage.src}
2728
alt="Grupo de personas"
2829
class="w-full h-full object-cover transform hover:scale-105 transition-transform duration-300"
2930
/>

0 commit comments

Comments
 (0)