Add jQuery variable definitions and CSS animation for star twinkle ef… #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to GitHub Pages | |
on: | |
push: | |
branches: | |
- main # Avvia il deploy quando ci sono modifiche su "main" | |
permissions: | |
contents: write | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: npm install | |
- name: Set permissions for Vite | |
run: chmod +x ./node_modules/.bin/vite | |
- name: Build project | |
run: npm run build | |
- name: Deploy to gh-pages branch | |
run: | | |
git config --global user.email "lollo176ita@gmail.com" | |
git config --global user.name "GitHub Actions" | |
git add dist -f | |
git commit -m "Deploy to GitHub Pages" | |
git push -f origin `git subtree split --prefix dist main`:gh-pages |