Skip to content

Commit

Permalink
feat: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-bouvier committed Dec 11, 2024
0 parents commit 2c25557
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
liberapay: trouver-une-fresque
16 changes: 16 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# .github/release.yml

changelog:
categories:
- title: ✨ Workshops
labels:
- workshop

- title: 🏕 Features
labels:
- enhancement

- title: 🐛 Bug Fixes
labels:
- "bug fix"

52 changes: 52 additions & 0 deletions .github/workflows/deploy-branches-and-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Déploiement (branches & PR)

on:
push:
branches:
- "*"
- "!main"
pull_request:
branches:
- "*"

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: "21.5"
- run: npm ci
- run: npm test -- --ci

# deploy-dev:
# # This workflow is only of value to the CovidTrackerFr/vitemadose-front repository and
# # would always fail in forks, so we limit this job to CovidTrackerFr/vitemadose-front
# # It means, 2 different cases when we want to run this job :
# # - 'push' events (as it comes from the repository itself)
# # - 'pull_requests' comming from the base repository
# # See : https://github.com/CovidTrackerFr/vitemadose-front/issues/89
# if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'CovidTrackerFr/vitemadose-front' }}

# runs-on: ubuntu-latest
# steps:
# - name: Inject slug/short variables
# uses: rlespinasse/github-slug-action@v3.x
# - uses: actions/checkout@v2
# - name: Use Node.js
# uses: actions/setup-node@v1
# with:
# node-version: "14.12"
# - run: npm ci
# - run: npm run build -- --base "/${{ env.GITHUB_REF_SLUG }}/"
# - name: rsync deployments
# uses: burnett01/rsync-deployments@4.1
# with:
# switches: -avz --delete --exclude ".git*" --exclude "offline/*"
# path: ./dist/
# remote_path: ${{ secrets.DEPLOY_PATH_DEV }}${{ env.GITHUB_REF_SLUG }}
# remote_host: ${{ secrets.DEPLOY_IP }}
# remote_user: ubuntu
# remote_key: ${{ secrets.DEPLOY_KEY }}
28 changes: 28 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Déploiement

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: "21.5"
- run: npm ci
- run: npm run build
env:
BASE_URL: "https://trouverunefresque.org/"
- name: Deploy to Hostinger via FTP
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
with:
server: ${{ secrets.HOSTINGER_FTP_SERVER }}
username: ${{ secrets.HOSTINGER_FTP_USERNAME }}
password: ${{ secrets.HOSTINGER_FTP_PASSWORD }}
local-dir: ./dist/
server-dir: /public_html/

0 comments on commit 2c25557

Please sign in to comment.