1.๐๐๐ ๐๐๐๐๐๐๐ ๐๐ ๐ ๐๐๐ ๐๐๐๐๐๐
โข Create a new file [.github/workflows/deploye.yml
] After created, copy this code๐๐ฝand paste it there
name: Node.js CI
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 */24 * * *' # Relance toutes les 6 heures
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.18.0]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Install FFmpeg
run: sudo apt-get install -y ffmpeg
- name: Start application with timeout
run: |
timeout 50590s npm start # Limite l'exรฉcution ร 5h 59m 50s
- name: Save state (Optional)
run: |
./save_state.sh
-
Get Koyeb api key
Do not forget to give a starโญ๏ธ please