Skip to content

Commit 44a79dd

Browse files
author
Nir Galon
authored
feat: auto publish release on github (#150)
* feat: auto publish release on github * fix: change CI branch * fix: add jekll-build gulp task * fix: change master to main in README badges
1 parent d23f595 commit 44a79dd

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

.github/workflows/cd.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,16 @@ jobs:
4949
- run: npm publish
5050
env:
5151
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
52+
53+
publish-release:
54+
needs: build
55+
runs-on: ubuntu-latest
56+
steps:
57+
- uses: actions/checkout@v2
58+
59+
- name: Create Release 🚀
60+
uses: ridedott/release-me-action@master
61+
env:
62+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63+
with:
64+
release-branches: '["main"]'

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Continuous Integration
33
on:
44
pull_request:
55
branches:
6-
- master
6+
- main
77

88
jobs:
99
build:

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
<img src="https://raw.githubusercontent.com/nirgn975/generator-jekyll-starter-kit/master/images/jekyll-starter-kit.png" />
1+
<img src="https://raw.githubusercontent.com/nirgn975/generator-jekyll-starter-kit/main/images/jekyll-starter-kit.png" />
22

33

44
[![license][license-image]][license-url] [![GitHub release (latest by date)](https://img.shields.io/github/v/release/nirgn975/generator-jekyll-starter-kit)](https://github.com/nirgn975/generator-jekyll-starter-kit/releases) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) ![Continuous Deployment](https://github.com/nirgn975/generator-jekyll-starter-kit/workflows/Continuous%20Deployment/badge.svg) [![Dependency Status][dependencyci-image]][dependencyci-url] [![codecov][codecov-image]][codecov-url] [![Codacy Badge][codacy-image]][codacy-url] [![Maintenance][maintenance-image]][maintenance-url]
55

66
> Jekyll + Google web-starter-kit = best of both worlds
77
88
<div style="width: 100%; text-align: center;">
9-
<img style="width: 80%;" src="https://raw.githubusercontent.com/nirgn975/generator-jekyll-starter-kit/master/images/hyper-terminal.png" />
9+
<img style="width: 80%;" src="https://raw.githubusercontent.com/nirgn975/generator-jekyll-starter-kit/main/images/hyper-terminal.png" />
1010
</div>
1111

1212
## Installation
@@ -68,10 +68,10 @@ Great! Here is how you can install the local generator to test changes.
6868
[![npm][downloads-image]][downloads-url]
6969

7070
[license-image]: https://img.shields.io/badge/license-ISC-blue.svg
71-
[license-url]: https://github.com/nirgn975/generator-jekyll-starter-kit/blob/master/LICENSE
71+
[license-url]: https://github.com/nirgn975/generator-jekyll-starter-kit/blob/main/LICENSE
7272
[dependencyci-image]: https://badgen.net/dependabot/nirgn975/generator-jekyll-starter-kit?icon=dependabot
7373
[dependencyci-url]: https://dependabot.com/
74-
[codecov-image]: https://codecov.io/gh/nirgn975/generator-jekyll-starter-kit/branch/master/graph/badge.svg
74+
[codecov-image]: https://codecov.io/gh/nirgn975/generator-jekyll-starter-kit/branch/main/graph/badge.svg
7575
[codecov-url]: https://codecov.io/gh/nirgn975/generator-jekyll-starter-kit
7676
[codacy-image]: https://api.codacy.com/project/badge/Grade/6dfa47fa71b64497a313cb1ddfcf26f4
7777
[codacy-url]: https://www.codacy.com/app/nirgn975/generator-jekyll-starter-kit?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=nirgn975/generator-jekyll-starter-kit&amp;utm_campaign=Badge_Grade

generators/app/templates/my-awesome-site/gulpfile.babel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ gulp.task('pug', () => {
104104
.pipe(gulp.dest('_includes'));
105105
});
106106

107+
<% } -%>
107108
gulp.task('jekyll-build', $.shell.task(['bundle exec jekyll build']));
108109

109-
<% } -%>
110110
// Watch change in files.
111111
gulp.task('serve', gulp.series(<% if (includePug) { -%>'pug',<% } -%>'scripts', 'scss','jekyll-build', (done) => {
112112
browserSync.init({

0 commit comments

Comments
 (0)