File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Ejemplo de GitHub Actions con Docker
1+ name : GitHub Pages
22
33on :
44 push :
55 branches :
6- - main
6+ - main # Change if your main branch is named differently
77
88jobs :
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
You can’t perform that action at this time.
0 commit comments