From 7c0fc839026754befbec2c6809e75646baa6ec27 Mon Sep 17 00:00:00 2001 From: jh7r Date: Fri, 21 Mar 2025 15:49:30 +0100 Subject: [PATCH] Create deploy.yml --- .../workflows/.github/workflows/deploy.yml | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/.github/workflows/deploy.yml diff --git a/.github/workflows/.github/workflows/deploy.yml b/.github/workflows/.github/workflows/deploy.yml new file mode 100644 index 00000000..be2b3eea --- /dev/null +++ b/.github/workflows/.github/workflows/deploy.yml @@ -0,0 +1,43 @@ +name: Node.js CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + schedule: + - cron: '0 */6 * * *' + +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 # Limits run to 5h 59m 50s + + - name: Save state (Optional) + run: | + ./save_state.sh