-
Notifications
You must be signed in to change notification settings - Fork 5
34 lines (34 loc) · 974 Bytes
/
deploy.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
name: Build
on:
repository_dispatch:
types: [deploy]
schedule:
- cron: '0 3 * * *'
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
env:
JEKYLL_ENV: production
MIQ_ENV: production
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PAYLOAD_REF_NAME: ${{ github.event.client_payload.ref_name }}
PAYLOAD_SHA: ${{ github.event.client_payload.sha }}
PAYLOAD_REPOSITORY: ${{ github.event.client_payload.repository }}
PAYLOAD_PR_NUMBER: ${{ github.event.client_payload.pr_number }}
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler-cache: true
- name: Get manageiq.org repo
run: git clone https://github.com/ManageIQ/manageiq.org
- name: Build
run: |
cd manageiq.org
bundle install
exe/miq build all
- name: Deploy
run: bin/deploy