From 85c080b50565dfa6dbd65077827d0b99ce765c0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Torres?= Date: Wed, 19 Jul 2023 19:12:58 +0000 Subject: [PATCH] =?UTF-8?q?chore:=20actualizaci=C3=B3n=20de=20la=20ra?= =?UTF-8?q?=C3=ADz=20de=20github=20pages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 787454f..f881d2c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -50,7 +50,7 @@ jobs: - name: Generar la documentación run: bundle exec rake build:www[$SITE_ROOT] build:pdf DOCUMENT_NAME=sistemas_operativos - - name: Publicar web + - name: Publicar el sitio web uses: JamesIves/github-pages-deploy-action@v4 with: branch: gh-pages @@ -58,6 +58,30 @@ jobs: target-folder: ${{ steps.branch_name.outputs.SOURCE_NAME }} clean: true + - name: Generar archivos para actualizar la raíz del sitio web + if: ${{ steps.branch_name.outputs.SOURCE_NAME == vars.CURRENT_BRANCH }} + run: | + mkdir -p ${{ runner.temp }}/html + cp output/www/sitemap.xml ${{ runner.temp }}/html + cat << EOF > ${{ runner.temp }}/html/index.html + + + + + + + + + EOF + + - name: Actualizar la raíz del sitio web + uses: JamesIves/github-pages-deploy-action@v4 + if: ${{ steps.branch_name.outputs.SOURCE_NAME == vars.CURRENT_BRANCH }} + with: + branch: gh-pages + folder: ${{ runner.temp }}/html + clean: false + - name: Publicar el PDF en 'Releases' uses: svenstaro/upload-release-action@v2 with: