Skip to content

Commit 4d489dc

Browse files
cambios en run.yml
1 parent e37ad3c commit 4d489dc

1 file changed

Lines changed: 28 additions & 8 deletions

File tree

.github/workflows/run.yml

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,37 @@
1-
name: Ejemplo de GitHub Actions con Docker
1+
name: GitHub Pages
22

33
on:
44
push:
55
branches:
6-
- main
6+
- main # Change if your main branch is named differently
77

88
jobs:
9-
build:
9+
build-and-deploy:
1010
runs-on: ubuntu-latest
11-
11+
1212
steps:
13-
- name: Checkout del repositorio
14-
uses: actions/checkout@v2
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: '16'
20+
21+
- name: Build and Deploy
22+
run: |
23+
npm install
24+
25+
# Execute your docker-compose command here
26+
docker-compose up -d
27+
28+
# Add any other necessary commands to build your page
29+
# Example: npm run build
30+
31+
- name: Deploy to GitHub Pages
32+
uses: peaceiris/actions-gh-pages@v3
33+
with:
34+
github_token: ${{ secrets.GITHUBTOKEN }}
35+
publish_dir: ./app # Path to the output directory of your Docker component or generated page
36+
1537

16-
- name: Configurar Docker Compose
17-
run: docker-compose up -d

0 commit comments

Comments
 (0)