Skip to content

Commit 7205c7c

Browse files
Update and rename ruby-action.md to generic.md
1 parent 0e80894 commit 7205c7c

File tree

1 file changed

+23
-9
lines changed
  • recipes/ci-cd/github-actions/workflows/jekyll/build

1 file changed

+23
-9
lines changed

recipes/ci-cd/github-actions/workflows/jekyll/build/ruby-action.md renamed to recipes/ci-cd/github-actions/workflows/jekyll/build/generic.md

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,34 @@
11
---
2-
title: Use Ruby action
3-
description: Use a Ruby action to set up Ruby and gems and then add your run command
2+
title: Generic
3+
description: Use a Ruby action to set up Ruby and gems, then build and add a generic deploy step
44
---
55

6+
7+
## Related
8+
9+
- [GH Actions Ruby][] section.
10+
- [jekyll-gh-actions-quickstart][] template repo with a live demo and tutorial.
11+
12+
[jekyll-gh-actions-quickstart]: https://github.com/MichaelCurrin/jekyll-gh-actions-quickstart
13+
[GH Actions Ruby]: {{ site.baseurl }}{% link recipes/ci-cd/github-actions/workflows/ruby/index.md %}
14+
15+
16+
## Why generic?
17+
18+
Why use this this approach? This is a great generic approach, rather than being tied to using an action which is built around Jekyll or Jekyll + GH Pages.
19+
20+
The Ruby action does the job well, it reusable across non-Jekyll projects and it will probably be simpler and better maintained than some Jekyll-specific one. Seeing as the Ruby one has wider appeal to the community than a Jekyll-specifi solution.
21+
22+
23+
## Sample
24+
625
{% raw %}
726

827
Here we set up a Ruby environment using the `setup-ruby` action. A param is passed to it so that it installed gems with Bundler and even caches them for you.
928

10-
See the [GH Actions Ruby][] section for more info.
11-
1229
- `main.yml`
1330
```yaml
14-
name: GH Pages deploy
31+
name: GH Pages Deploy
1532

1633
on:
1734
push:
@@ -37,7 +54,7 @@ See the [GH Actions Ruby][] section for more info.
3754
- name: Set up Ruby πŸ’Ž
3855
uses: ruby/setup-ruby@v1
3956
with:
40-
ruby-version: '2.7'
57+
ruby-version: '3'
4158
bundler-cache: true
4259

4360
- name: Build πŸ—
@@ -53,8 +70,5 @@ See the [GH Actions Ruby][] section for more info.
5370
5471
Replace the Build command `make build` if you prefer.
5572

56-
Why use this this approach? This is a great generic approach, rather than being tied to using an action which is built around Jekyll or Jekyll + GH Pages. This Ruby action does the job well, it reusable across non-Jekyll projects and it will probably be simpler and better maintained than some Jekyll-specific one. Seeing as the Ruby one has wider appeal to community than a Jekyll solution.
57-
5873
{% endraw %}
5974

60-
[GH Actions Ruby]: {{ site.baseurl }}{% link recipes/ci-cd/github-actions/workflows/ruby/index.md %}

0 commit comments

Comments
Β (0)