aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/nightly.yml
blob: 156b7143a52b6bfbd64f6ce07249081e296f2616 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Nightly

on:
  push:
    branches:
      - 'next'
  schedule:
    - cron: '0 3 * * *'

jobs:

  nightly:
    runs-on: ubuntu-latest

    steps:
      -
        name: Checkout develop
        uses: actions/checkout@v2
        with:
          ref: next

      - uses: './.github/actions/reusable-prepare-peertube-build'
        with:
          node-version: '14.x'

      - name: Build
        run: npm run nightly

      - uses: './.github/actions/reusable-deploy'
        with:
          source: ./peertube-nightly-*
          destination: nightly-test
          knownHosts: ${{ secrets.STATS_DEPLOYEMENT_KNOWN_HOSTS }}
          deployKey: ${{ secrets.STATS_DEPLOYEMENT_KEY }}
          deployUser: ${{ secrets.STATS_DEPLOYEMENT_USER }}
          deployHost: ${{ secrets.STATS_DEPLOYEMENT_HOST }}