Skip to content

Commit c8d07bf

Browse files
authored
Merge pull request #33 from cmderdev/copilot/migrate-to-github-actions
Migrate CI from Travis CI to GitHub Actions
2 parents a2b1aa4 + 739e656 commit c8d07bf

File tree

5 files changed

+53
-15
lines changed

5 files changed

+53
-15
lines changed

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
permissions:
14+
contents: read
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Ruby
21+
uses: ruby/setup-ruby@v1
22+
with:
23+
ruby-version: '3.2'
24+
bundler-cache: true
25+
26+
- name: Install dependencies
27+
run: bundle install
28+
29+
- name: Build Jekyll site
30+
run: bundle exec jekyll build
31+
32+
- name: Run HTMLProofer
33+
run: bundle exec htmlproofer ./_site --disable-external
34+
35+
- name: Upload site artifacts
36+
uses: actions/upload-artifact@v4
37+
if: success()
38+
with:
39+
name: site
40+
path: _site/
41+
retention-days: 7

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@
55
# Reserved hidden directory
66
.*_space
77

8+
# Jekyll build artifacts
9+
_site/
10+
.sass-cache/
11+
.jekyll-cache/
12+
.jekyll-metadata
13+
14+
# Bundler
15+
vendor/
16+
.bundle/
17+
Gemfile.lock
18+
819
# =========================
920
# Operating System Files
1021
# =========================

.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)

script/cibuild

100644100755
File mode changed.

0 commit comments

Comments
 (0)