-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (57 loc) · 1.66 KB
/
ci.yaml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
name: CI
on:
schedule:
- cron: '*/5 * * * *'
push:
branches:
- main
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Steampipe
run: |
sudo /bin/sh -c "$(curl -fsSL https://steampipe.io/install/steampipe.sh)"
steampipe --version
steampipe plugin install github
steampipe plugin install net
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
- run: make
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Timeout the this step as a work-around for https://github.com/nextstrain/status/issues/5
timeout-minutes: 10
- if: always()
uses: actions/upload-pages-artifact@v3
with:
path: build/
publish:
needs: build
if: github.ref == 'refs/heads/main'
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- id: deployment
uses: actions/deploy-pages@v4
defaults:
run:
# This is the same as GitHub Action's `bash` keyword as of 20 June 2023:
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell
#
# Completely spelling it out here so that GitHub can't change it out from under us
# and we don't have to refer to the docs to know the expected behavior.
shell: bash --noprofile --norc -eo pipefail {0}