Skip to content

ci: debug 4

ci: debug 4 #27

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python 🐍
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install Pre-Commit ⚠️
run: python -m pip install pre-commit && pre-commit install
- name: Load cached Pre-Commit Dependencies πŸ“¦
id: cached-pre-commit-dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pre-commit/
key: pre-commit|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Execute Pre-Commit πŸ”Ž
run: pre-commit run --show-diff-on-failure --color=always --all-files
build-and-deploy:
runs-on: ubuntu-latest
needs: validate
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v4
- name: Setup Node.js πŸ”¨
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies πŸ“¦
run: npm install
- name: Build πŸ”¨
run: npm run build
- name: Check all dirs
run: ls -alh
- name: check public
run: ls -alh public
- name: Check dist directory
run: ls -alh dist
- name: Deploy to GitHub Pages πŸš€
if: github.ref == 'refs/heads/main'
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist
token: ${{ secrets.GITHUB_TOKEN }}