Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
JulioContrerasH committed Oct 9, 2024
1 parent 93ec048 commit 615f5b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 22 deletions.
23 changes: 3 additions & 20 deletions .github/workflows/gh-page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,14 @@ jobs:
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.125.7'
# extended: true

- name: Build
run: hugo --minify

# Deploy to gh-pages
- name: Deploy to gh-pages
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs

# Modify the hugo.toml file for gh-isp deployment
- name: Modify baseURL for gh-isp
run: |
sed -i 's|baseURL = "https://ipl-uv.github.io/"|baseURL = "https://isp.uv.es/github"|' hugo.toml
- name: Build for gh-isp
run: hugo --minify

# Deploy to gh-isp
- name: Deploy to gh-isp
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
publish_branch: gh-isp
publish_dir: ./docs
4 changes: 2 additions & 2 deletions hugo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
baseURL = "https://ipl-uv.github.io/"
#baseURL = "https://isp.uv.es/github"
#baseURL = "https://ipl-uv.github.io/"
baseURL = "https://isp.uv.es/github"
publishDir = "docs"

#baseURL = "http://127.0.0.1/isp/"
Expand Down

0 comments on commit 615f5b1

Please sign in to comment.