Skip to content

Merge pull request #3 from erseco/add-examples #29

Merge pull request #3 from erseco/add-examples

Merge pull request #3 from erseco/add-examples #29

Workflow file for this run

---
name: Build & Publish to GitHub Pages
on:
push:
branches: [ "main" ]
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: GitHub Checkout
uses: actions/checkout@v3
- name: Add js version to avoid cache
run: |
TIMESTAMP=$(date +%s)
VERSION="?v=$TIMESTAMP"
sed -i "s|script.js|script.js$VERSION|g" index.html
sed -i "s|style.css|style.css$VERSION|g" index.html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
allow_empty_commit: true
publish_dir: .
cname: elidd.ernesto.es
enable_jekyll: false