2021-07-27 08:00:00 +00:00
|
|
|
name: CI
|
2021-07-09 20:33:03 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2021-08-17 19:41:39 +00:00
|
|
|
paths-ignore:
|
2022-09-29 21:49:41 +00:00
|
|
|
- "README.md"
|
2021-08-17 19:43:06 +00:00
|
|
|
schedule:
|
2022-09-29 21:49:41 +00:00
|
|
|
- cron: "0 12 15 * *"
|
2021-08-17 19:43:06 +00:00
|
|
|
workflow_dispatch:
|
2021-07-09 20:33:03 +00:00
|
|
|
|
|
|
|
jobs:
|
2022-09-29 22:29:58 +00:00
|
|
|
build:
|
2021-07-09 20:33:03 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-07-16 11:00:00 +00:00
|
|
|
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
2021-07-09 20:33:03 +00:00
|
|
|
|
2023-07-18 12:27:18 +00:00
|
|
|
- uses: cachix/install-nix-action@6ed004b9ccb68dbc28e7c85bee15fa93dbd214ac # v22
|
|
|
|
with:
|
|
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
|
|
|
2023-07-18 12:37:54 +00:00
|
|
|
- run: |
|
2023-10-07 00:30:42 +00:00
|
|
|
./run ci:build
|
2023-07-18 12:37:54 +00:00
|
|
|
|
2023-07-18 13:01:48 +00:00
|
|
|
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
2021-07-15 23:47:35 +00:00
|
|
|
with:
|
2023-07-18 13:01:48 +00:00
|
|
|
name: dist
|
|
|
|
path: dist
|
2021-07-09 20:33:03 +00:00
|
|
|
|
2022-09-29 22:29:58 +00:00
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs:
|
|
|
|
- build
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
|
|
|
|
|
|
|
- name: Add the deployment SSH key
|
|
|
|
uses: shimataro/ssh-key-action@3c9b0fc6f2d223b8450b02a0445f526350fc73e0 # 2.3.1
|
|
|
|
with:
|
|
|
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
|
|
name: id_rsa
|
|
|
|
known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
|
|
|
|
|
2023-07-18 13:01:48 +00:00
|
|
|
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
|
|
|
|
with:
|
|
|
|
name: dist
|
|
|
|
path: dist
|
|
|
|
|
2022-09-29 22:29:58 +00:00
|
|
|
- run: |
|
2023-10-07 00:30:42 +00:00
|
|
|
./run ci:deploy ${{ github.sha }}
|
2022-09-29 22:29:58 +00:00
|
|
|
|
2021-07-09 20:33:03 +00:00
|
|
|
# vim: sw=2 ts=2
|