github_pages_rake_tasks 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/continuous_integration.yml +41 -0
- data/.github/workflows/release.yml +51 -0
- data/.release-please-manifest.json +3 -0
- data/.rubocop.yml +1 -1
- data/CHANGELOG.md +14 -0
- data/README.md +0 -2
- data/Rakefile +7 -0
- data/github_pages_rake_tasks.gemspec +5 -5
- data/lib/github_pages_rake_tasks/version.rb +1 -1
- data/release-please-config.json +22 -0
- metadata +18 -18
- data/.github/workflows/main.yml +0 -64
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8e248fa656b72455a69ec8f23abec745c3d04ffde16bf527fb0153e04f3dadf
|
4
|
+
data.tar.gz: 93c260aa0ec3685bf92e5664e64103bbd2ac16b6c6754cff8a9dd9627f86d56c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35a7d55e39f02c717c38356e76958047198406d5bd65dd1faab7758e187f1c4a73ab20ad6307745f32b498fded7e20ff2cdaee2a9bc044f0c58da6309a90c90a
|
7
|
+
data.tar.gz: 05a82eb9f4d556e17f6a4425f5e1fe5944795b00436eed57f5c2f75c771d1d990aebebd8cb40e17880a3a4a79607aecb4cdb5450516f3185bb70b1b676f50116
|
@@ -0,0 +1,41 @@
|
|
1
|
+
name: Continuous Integration
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
branches: [main]
|
6
|
+
|
7
|
+
workflow_dispatch:
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
build:
|
11
|
+
name: Ruby ${{ matrix.ruby }} on ${{ matrix.operating-system }}
|
12
|
+
|
13
|
+
if: >-
|
14
|
+
github.event_name == 'workflow_dispatch' ||
|
15
|
+
(github.event_name == 'pull_request' && !startsWith(github.event.pull_request.head.ref, 'release-please--'))
|
16
|
+
|
17
|
+
runs-on: ${{ matrix.operating-system }}
|
18
|
+
continue-on-error: true
|
19
|
+
|
20
|
+
env:
|
21
|
+
FAIL_ON_LOW_COVERAGE: ${{ matrix.fail_on_low_coverage }}
|
22
|
+
|
23
|
+
strategy:
|
24
|
+
fail-fast: false
|
25
|
+
matrix:
|
26
|
+
ruby: ["3.1", "3.4"]
|
27
|
+
operating-system: [ubuntu-latest]
|
28
|
+
fail_on_low_coverage: [true]
|
29
|
+
|
30
|
+
steps:
|
31
|
+
- name: Checkout
|
32
|
+
uses: actions/checkout@v4
|
33
|
+
|
34
|
+
- name: Initialize Ruby
|
35
|
+
uses: ruby/setup-ruby@v1
|
36
|
+
with:
|
37
|
+
ruby-version: ${{ matrix.ruby }}
|
38
|
+
bundler-cache: true
|
39
|
+
|
40
|
+
- name: Run rake
|
41
|
+
run: bundle exec rake
|
@@ -0,0 +1,51 @@
|
|
1
|
+
---
|
2
|
+
name: Release Gem
|
3
|
+
description: |
|
4
|
+
This workflow creates a new release on GitHub and publishes the gem to
|
5
|
+
RubyGems.org.
|
6
|
+
|
7
|
+
The workflow uses the `googleapis/release-please-action` to handle the
|
8
|
+
release creation process and the `rubygems/release-gem` action to publish
|
9
|
+
the gem.
|
10
|
+
|
11
|
+
on:
|
12
|
+
push:
|
13
|
+
branches: ["main"]
|
14
|
+
|
15
|
+
workflow_dispatch:
|
16
|
+
|
17
|
+
jobs:
|
18
|
+
release:
|
19
|
+
runs-on: ubuntu-latest
|
20
|
+
|
21
|
+
environment:
|
22
|
+
name: RubyGems
|
23
|
+
url: https://rubygems.org/gems/process_executer
|
24
|
+
|
25
|
+
permissions:
|
26
|
+
contents: write
|
27
|
+
pull-requests: write
|
28
|
+
id-token: write
|
29
|
+
|
30
|
+
steps:
|
31
|
+
- name: Checkout project
|
32
|
+
uses: actions/checkout@v4
|
33
|
+
|
34
|
+
- name: Create release
|
35
|
+
uses: googleapis/release-please-action@v4
|
36
|
+
id: release
|
37
|
+
with:
|
38
|
+
token: ${{ secrets.AUTO_RELEASE_TOKEN }}
|
39
|
+
config-file: release-please-config.json
|
40
|
+
manifest-file: .release-please-manifest.json
|
41
|
+
|
42
|
+
- name: Setup ruby
|
43
|
+
uses: ruby/setup-ruby@v1
|
44
|
+
if: ${{ steps.release.outputs.release_created }}
|
45
|
+
with:
|
46
|
+
bundler-cache: true
|
47
|
+
ruby-version: ruby
|
48
|
+
|
49
|
+
- name: Push to RubyGems.org
|
50
|
+
uses: rubygems/release-gem@v1
|
51
|
+
if: ${{ steps.release.outputs.release_created }}
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,20 @@ Changes for each release are listed in this file. Changes prior to v1.0.0 were n
|
|
4
4
|
|
5
5
|
This project adheres to [Semantic Versioning](https://semver.org/) for its releases.
|
6
6
|
|
7
|
+
## [1.0.3](https://github.com/main-branch/github_pages_rake_tasks/compare/v1.0.2...v1.0.3) (2025-04-17)
|
8
|
+
|
9
|
+
|
10
|
+
### Bug Fixes
|
11
|
+
|
12
|
+
* Do not trigger build workflows after merging to main or for release PRs ([#31](https://github.com/main-branch/github_pages_rake_tasks/issues/31)) ([9acf1c9](https://github.com/main-branch/github_pages_rake_tasks/commit/9acf1c923df2ff32b632ef3c3d56dd9a1591c547))
|
13
|
+
|
14
|
+
## [1.0.2](https://github.com/main-branch/github_pages_rake_tasks/compare/v1.0.1...v1.0.2) (2025-04-16)
|
15
|
+
|
16
|
+
|
17
|
+
### Bug Fixes
|
18
|
+
|
19
|
+
* Automate commit-to-publish workflow ([#29](https://github.com/main-branch/github_pages_rake_tasks/issues/29)) ([90e3919](https://github.com/main-branch/github_pages_rake_tasks/commit/90e3919a1566b0123dacc95165cc0f0916736e7b))
|
20
|
+
|
7
21
|
## v1.0.1 (2023-12-11)
|
8
22
|
|
9
23
|
[Full Changelog](https://github.com/main-branch/github_pages_rake_tasks/compare/v1.0.0..v1.0.1)
|
data/README.md
CHANGED
@@ -4,8 +4,6 @@
|
|
4
4
|
[](https://rubydoc.info/gems/github_pages_rake_tasks/)
|
5
5
|
[](https://rubydoc.info/gems/github_pages_rake_tasks/file/CHANGELOG.md)
|
6
6
|
[](https://github.com/main-branch/github_pages_rake_tasks/actions?query=workflow%3ACI%20Build)
|
7
|
-
[](https://codeclimate.com/github/main-branch/github_pages_rake_tasks/maintainability)
|
8
|
-
[](https://codeclimate.com/github/main-branch/github_pages_rake_tasks/test_coverage)
|
9
7
|
|
10
8
|
The `github_pages_rake_tasks` gem creates a rake task that pushes files
|
11
9
|
from a local documentation directory to a remote Git repository branch.
|
data/Rakefile
CHANGED
@@ -26,6 +26,13 @@ rescue Bundler::BundlerError => e
|
|
26
26
|
exit e.status_code
|
27
27
|
end
|
28
28
|
|
29
|
+
# Make it so that calling `rake release` just calls `rake release:rubygems_push` to
|
30
|
+
# avoid creating and pushing a new tag.
|
31
|
+
|
32
|
+
Rake::Task['release'].clear
|
33
|
+
desc 'Customized release task to avoid creating a new tag'
|
34
|
+
task release: 'release:rubygem_push'
|
35
|
+
|
29
36
|
CLEAN << 'pkg'
|
30
37
|
CLEAN << 'Gemfile.lock'
|
31
38
|
|
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
|
24
24
|
spec.homepage = 'https://github.com/jcouball/github_pages_rake_tasks'
|
25
25
|
spec.license = 'MIT'
|
26
|
-
spec.required_ruby_version = '>= 3.
|
26
|
+
spec.required_ruby_version = '>= 3.1.0'
|
27
27
|
|
28
28
|
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
29
29
|
spec.metadata['rubygems_mfa_required'] = 'true'
|
@@ -42,10 +42,10 @@ Gem::Specification.new do |spec|
|
|
42
42
|
spec.require_paths = ['lib']
|
43
43
|
|
44
44
|
spec.add_development_dependency 'bundler-audit', '~> 0.9'
|
45
|
-
spec.add_development_dependency 'rake', '~> 13.
|
46
|
-
spec.add_development_dependency 'rspec', '~> 3.
|
47
|
-
spec.add_development_dependency 'rubocop', '~> 1.
|
48
|
-
spec.add_development_dependency 'semverify', '0.3
|
45
|
+
spec.add_development_dependency 'rake', '~> 13.2'
|
46
|
+
spec.add_development_dependency 'rspec', '~> 3.13'
|
47
|
+
spec.add_development_dependency 'rubocop', '~> 1.75'
|
48
|
+
spec.add_development_dependency 'semverify', '~> 0.3'
|
49
49
|
spec.add_development_dependency 'simplecov', '~> 0.22'
|
50
50
|
spec.add_development_dependency 'simplecov-lcov', '~> 0.8'
|
51
51
|
|
@@ -0,0 +1,22 @@
|
|
1
|
+
{
|
2
|
+
"bootstrap-sha": "63e60714532721c2f407d6c15d7f80d4b3062db8",
|
3
|
+
"packages": {
|
4
|
+
".": {
|
5
|
+
"release-type": "ruby",
|
6
|
+
"package-name": "github_pages_rake_tasks",
|
7
|
+
"changelog-path": "CHANGELOG.md",
|
8
|
+
"version-file": "lib/github_pages_rake_tasks/version.rb",
|
9
|
+
"bump-minor-pre-major": true,
|
10
|
+
"bump-patch-for-minor-pre-major": true,
|
11
|
+
"draft": false,
|
12
|
+
"prerelease": false,
|
13
|
+
"include-component-in-tag": false
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"plugins": [
|
17
|
+
{
|
18
|
+
"type": "sentence-case"
|
19
|
+
}
|
20
|
+
],
|
21
|
+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
|
22
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github_pages_rake_tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Couball
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: bundler-audit
|
@@ -30,56 +29,56 @@ dependencies:
|
|
30
29
|
requirements:
|
31
30
|
- - "~>"
|
32
31
|
- !ruby/object:Gem::Version
|
33
|
-
version: '13.
|
32
|
+
version: '13.2'
|
34
33
|
type: :development
|
35
34
|
prerelease: false
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
37
36
|
requirements:
|
38
37
|
- - "~>"
|
39
38
|
- !ruby/object:Gem::Version
|
40
|
-
version: '13.
|
39
|
+
version: '13.2'
|
41
40
|
- !ruby/object:Gem::Dependency
|
42
41
|
name: rspec
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
44
43
|
requirements:
|
45
44
|
- - "~>"
|
46
45
|
- !ruby/object:Gem::Version
|
47
|
-
version: '3.
|
46
|
+
version: '3.13'
|
48
47
|
type: :development
|
49
48
|
prerelease: false
|
50
49
|
version_requirements: !ruby/object:Gem::Requirement
|
51
50
|
requirements:
|
52
51
|
- - "~>"
|
53
52
|
- !ruby/object:Gem::Version
|
54
|
-
version: '3.
|
53
|
+
version: '3.13'
|
55
54
|
- !ruby/object:Gem::Dependency
|
56
55
|
name: rubocop
|
57
56
|
requirement: !ruby/object:Gem::Requirement
|
58
57
|
requirements:
|
59
58
|
- - "~>"
|
60
59
|
- !ruby/object:Gem::Version
|
61
|
-
version: '1.
|
60
|
+
version: '1.75'
|
62
61
|
type: :development
|
63
62
|
prerelease: false
|
64
63
|
version_requirements: !ruby/object:Gem::Requirement
|
65
64
|
requirements:
|
66
65
|
- - "~>"
|
67
66
|
- !ruby/object:Gem::Version
|
68
|
-
version: '1.
|
67
|
+
version: '1.75'
|
69
68
|
- !ruby/object:Gem::Dependency
|
70
69
|
name: semverify
|
71
70
|
requirement: !ruby/object:Gem::Requirement
|
72
71
|
requirements:
|
73
|
-
- -
|
72
|
+
- - "~>"
|
74
73
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.3
|
74
|
+
version: '0.3'
|
76
75
|
type: :development
|
77
76
|
prerelease: false
|
78
77
|
version_requirements: !ruby/object:Gem::Requirement
|
79
78
|
requirements:
|
80
|
-
- -
|
79
|
+
- - "~>"
|
81
80
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.3
|
81
|
+
version: '0.3'
|
83
82
|
- !ruby/object:Gem::Dependency
|
84
83
|
name: simplecov
|
85
84
|
requirement: !ruby/object:Gem::Requirement
|
@@ -170,8 +169,10 @@ extensions: []
|
|
170
169
|
extra_rdoc_files: []
|
171
170
|
files:
|
172
171
|
- ".github/CODEOWNERS"
|
173
|
-
- ".github/workflows/
|
172
|
+
- ".github/workflows/continuous_integration.yml"
|
173
|
+
- ".github/workflows/release.yml"
|
174
174
|
- ".gitignore"
|
175
|
+
- ".release-please-manifest.json"
|
175
176
|
- ".rspec"
|
176
177
|
- ".rubocop.yml"
|
177
178
|
- ".yardopts"
|
@@ -188,6 +189,7 @@ files:
|
|
188
189
|
- lib/github_pages_rake_tasks/publish_task.rb
|
189
190
|
- lib/github_pages_rake_tasks/state.rb
|
190
191
|
- lib/github_pages_rake_tasks/version.rb
|
192
|
+
- release-please-config.json
|
191
193
|
homepage: https://github.com/jcouball/github_pages_rake_tasks
|
192
194
|
licenses:
|
193
195
|
- MIT
|
@@ -197,7 +199,6 @@ metadata:
|
|
197
199
|
homepage_uri: https://github.com/jcouball/github_pages_rake_tasks
|
198
200
|
source_code_uri: https://github.com/jcouball/github_pages_rake_tasks
|
199
201
|
changelog_uri: https://github.com/jcouball/github_pages_rake_tasks
|
200
|
-
post_install_message:
|
201
202
|
rdoc_options: []
|
202
203
|
require_paths:
|
203
204
|
- lib
|
@@ -205,15 +206,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
205
206
|
requirements:
|
206
207
|
- - ">="
|
207
208
|
- !ruby/object:Gem::Version
|
208
|
-
version: 3.
|
209
|
+
version: 3.1.0
|
209
210
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
210
211
|
requirements:
|
211
212
|
- - ">="
|
212
213
|
- !ruby/object:Gem::Version
|
213
214
|
version: '0'
|
214
215
|
requirements: []
|
215
|
-
rubygems_version: 3.
|
216
|
-
signing_key:
|
216
|
+
rubygems_version: 3.6.7
|
217
217
|
specification_version: 4
|
218
218
|
summary: Rake tasks for publishing documentation to GitHub Pages
|
219
219
|
test_files: []
|
data/.github/workflows/main.yml
DELETED
@@ -1,64 +0,0 @@
|
|
1
|
-
name: CI Build
|
2
|
-
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
branches: [ main ]
|
6
|
-
|
7
|
-
pull_request:
|
8
|
-
branches: [ main ]
|
9
|
-
|
10
|
-
jobs:
|
11
|
-
build:
|
12
|
-
continue-on-error: true
|
13
|
-
|
14
|
-
strategy:
|
15
|
-
matrix:
|
16
|
-
ruby: ['3.0', '3.2', head, jruby-head]
|
17
|
-
operating-system: [ubuntu-latest]
|
18
|
-
include:
|
19
|
-
- ruby: '3.0'
|
20
|
-
operating-system: windows-latest
|
21
|
-
- ruby: jruby-head
|
22
|
-
operating-system: windows-latest
|
23
|
-
|
24
|
-
name: Ruby ${{ matrix.ruby }} on ${{ matrix.operating-system }}
|
25
|
-
runs-on: ${{ matrix.operating-system }}
|
26
|
-
|
27
|
-
steps:
|
28
|
-
- name: Checkout
|
29
|
-
uses: actions/checkout@v3
|
30
|
-
|
31
|
-
- name: Initialize Ruby
|
32
|
-
uses: ruby/setup-ruby@v1
|
33
|
-
with:
|
34
|
-
ruby-version: ${{ matrix.ruby }}
|
35
|
-
bundler-cache: true
|
36
|
-
|
37
|
-
- name: Run rake
|
38
|
-
run: bundle exec rake
|
39
|
-
|
40
|
-
coverage:
|
41
|
-
needs: [ build ]
|
42
|
-
runs-on: ubuntu-latest
|
43
|
-
|
44
|
-
name: Report test coverage to CodeClimate
|
45
|
-
|
46
|
-
steps:
|
47
|
-
- name: Checkout
|
48
|
-
uses: actions/checkout@v3
|
49
|
-
|
50
|
-
- name: Initialize Ruby
|
51
|
-
uses: ruby/setup-ruby@v1
|
52
|
-
with:
|
53
|
-
ruby-version: 3.1
|
54
|
-
bundler-cache: true
|
55
|
-
|
56
|
-
- name: Run tests
|
57
|
-
run: bundle exec rake spec
|
58
|
-
|
59
|
-
- name: Report test coverage
|
60
|
-
uses: paambaati/codeclimate-action@v3.2.0
|
61
|
-
env:
|
62
|
-
CC_TEST_REPORTER_ID: 997ddf9df5b99897b448d7a7a13e332d57f0e29754d9b9d1414aaee611759422
|
63
|
-
with:
|
64
|
-
coverageLocations: ${{github.workspace}}/coverage/lcov/*.lcov:lcov
|