Skip to content

Create .gitignore

Create .gitignore #8

Workflow file for this run

name: Deploiement sur GitHub Pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
- run: npm ci
- run: npm run build
- run: npm test
- name: Prepare
run: |
mkdir ./dist
cp *.html ./dist
cp robots.txt ./dist
cp -rf build ./dist && rm ./dist/build/.gitignore
cp -rf data ./dist
cp -rf public ./dist
cp -rf images ./dist
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
keep_files: true