Skip to content

Commit 3159645

Browse files
authored
Merge pull request #1643 from chessbyte/github_actions
Switch to GitHub Actions
2 parents 7e8555b + b9af70f commit 3159645

File tree

3 files changed

+41
-10
lines changed

3 files changed

+41
-10
lines changed

.github/workflows/ci.yaml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
ci:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Set up Ruby
11+
uses: ruby/setup-ruby@v1
12+
with:
13+
ruby-version: '2.5'
14+
bundler-cache: true
15+
- name: Get manageiq.org repo
16+
run: git clone https://github.com/ManageIQ/manageiq.org
17+
- name: Build
18+
run: |
19+
cd manageiq.org
20+
bundle install
21+
exe/miq build all
22+
- name: Regex Match Commit Message on Push
23+
uses: actions-ecosystem/action-regex-match@v2
24+
if: ${{ github.event_name == 'push' && github.repository_owner == 'ManageIQ' }}
25+
id: regex-commit-message
26+
with:
27+
text: ${{ github.event.head_commit.message }}
28+
regex: 'Merge pull request #(\d+)'
29+
- name: Notify manageiq.github.io on Push
30+
if: ${{ github.event_name == 'push' && github.repository_owner == 'ManageIQ' }}
31+
uses: peter-evans/repository-dispatch@v1
32+
with:
33+
token: ${{ secrets.DEPLOY_TOKEN }}
34+
repository: ManageIQ/manageiq.github.io
35+
event-type: deploy
36+
client-payload: |
37+
{ "repository": "${{ github.repository }}",
38+
"pr_number": "${{ steps.regex-commit-message.outputs.group1 }}",
39+
"ref_name": "${{ github.ref_name }}",
40+
"sha": "${{ github.sha }}" }

.travis.yml

-9
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ManageIQ Documentation
22

3-
[![Build Status](https://travis-ci.org/ManageIQ/manageiq-documentation.svg?branch=master)](https://travis-ci.com/github/ManageIQ/manageiq_docs)
3+
[![CI](https://github.com/ManageIQ/manageiq-documentation/actions/workflows/ci.yaml/badge.svg)](https://github.com/ManageIQ/manageiq-documentation/actions/workflows/ci.yaml)
44
[![Join the chat at https://gitter.im/ManageIQ/manageiq_docs](https://badges.gitter.im/ManageIQ/manageiq_docs.svg)](https://gitter.im/ManageIQ/manageiq_docs?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
55

66
This documentation site is a [Jekyll](https://github.com/jekyll/jekyll) based site for the ManageIQ documentation.

0 commit comments

Comments
 (0)