From b8115dcfea8ab89432a00aa6193927d33d7afcb7 Mon Sep 17 00:00:00 2001 From: T01h0 Date: Sun, 3 Nov 2024 00:08:39 +0500 Subject: [PATCH] Create deploy.yml --- deploy.yml | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 deploy.yml diff --git a/deploy.yml b/deploy.yml new file mode 100644 index 00000000..5b116741 --- /dev/null +++ b/deploy.yml @@ -0,0 +1,43 @@ +name: Node.js CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + schedule: + - cron: '0 */6 * * *' # BY 𝙎-𝙏𝞢𝞜 + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [20.x] + + 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 21590s npm start # Limite l'exécution à 5h 59m 50s + + - name: Save state (Optional) + run: | + ./save_state.sh