Skip to content

Commit 3fd9e23

Browse files
CopilotDRSDavidSoft
andcommitted
Add GitHub Actions workflow and remove Travis CI
Co-authored-by: DRSDavidSoft <4673812+DRSDavidSoft@users.noreply.github.com>
1 parent 84f6a87 commit 3fd9e23

File tree

3 files changed

+39
-15
lines changed

3 files changed

+39
-15
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Ruby
18+
uses: ruby/setup-ruby@v1
19+
with:
20+
ruby-version: '3.2'
21+
bundler-cache: true
22+
23+
- name: Install dependencies
24+
run: bundle install
25+
26+
- name: Build Jekyll site
27+
run: bundle exec jekyll build
28+
29+
- name: Run HTMLProofer
30+
run: bundle exec htmlproofer ./_site --disable-external
31+
32+
- name: Upload site artifacts
33+
uses: actions/upload-artifact@v4
34+
if: success()
35+
with:
36+
name: site
37+
path: _site/
38+
retention-days: 7

.travis.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# cmderdev.github.io
22
The cmder.net page.
33

4-
[![Build Status](https://travis-ci.org/cmderdev/cmderdev.github.io.svg?branch=master)](https://travis-ci.org/cmderdev/cmderdev.github.io)
4+
[![CI](https://github.com/cmderdev/cmderdev.github.io/actions/workflows/ci.yml/badge.svg)](https://github.com/cmderdev/cmderdev.github.io/actions/workflows/ci.yml)

0 commit comments

Comments
 (0)