aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/nightly.yml
blob: 6bdb10ac36b77333dd2254d7f551ac31645d0d3e (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
name: Nightly Deploy

on:
  schedule:
    - cron: "0 3 * * *" # run at 3 AM UTC

jobs:
  build-macos:
    runs-on: macos-latest
    steps:
      - uses: actions/checkout@v2

      - name: Install dependencies via brew
        run: brew install qt@5 openssl

      - uses: jurplel/install-qt-action@v2
        with:
          version: "5.12.8"

      - name: make
        run: make build/kristall

      - name: Prepare deployment
        working-directory: build
        run: macdeployqt kristall.app -dmg

      - name: Deploy with SCP
        uses: noobly314/deploy-with-scp@v1
        with:
          src: build/kristall.dmg
          dest: kristall/Kristall-nightly-macos-x86_64.dmg
          username: generic-ci
          server-ip: random-projects.net
          ssh-key: ${{ secrets.PRIVATE_KEY }} #