From 482b6e3f9a83162c04aff30a7c94fecdc2eeb40f Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Sat, 23 Mar 2024 10:22:44 +0300 Subject: [PATCH] #23 gha --- .github/workflows/l3build.yml | 26 ++++++++++++++++++++++++-- .github/workflows/markdown-lint.yml | 23 ++++++++++++++++++++++- .github/workflows/yamllint.yml | 15 +++++++++++++++ .rultor.yml | 22 ++++++++++++++++++++++ LICENSE.txt | 2 +- README.md | 8 ++++++-- yb-book.dtx | 2 +- yb-book.ins | 4 ++-- 8 files changed, 93 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/yamllint.yml diff --git a/.github/workflows/l3build.yml b/.github/workflows/l3build.yml index 728dc1e..44e497b 100644 --- a/.github/workflows/l3build.yml +++ b/.github/workflows/l3build.yml @@ -1,5 +1,27 @@ +# (The MIT License) +# +# Copyright (c) 2021-2024 Yegor Bugayenko +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the 'Software'), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. +--- name: l3build -on: +'on': push: branches: master pull_request: @@ -8,7 +30,7 @@ jobs: l3build: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - uses: actions/checkout@master - uses: teatimeguest/setup-texlive-action@v3.0.1 with: package-file: DEPENDS.txt diff --git a/.github/workflows/markdown-lint.yml b/.github/workflows/markdown-lint.yml index b83ebe7..35468df 100644 --- a/.github/workflows/markdown-lint.yml +++ b/.github/workflows/markdown-lint.yml @@ -1,6 +1,27 @@ +# (The MIT License) +# +# Copyright (c) 2021-2024 Yegor Bugayenko +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the 'Software'), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. --- name: markdown-lint -on: +'on': push: jobs: markdown-lint: diff --git a/.github/workflows/yamllint.yml b/.github/workflows/yamllint.yml new file mode 100644 index 0000000..a6b7216 --- /dev/null +++ b/.github/workflows/yamllint.yml @@ -0,0 +1,15 @@ +--- +name: yamllint +'on': + push: + branches: + - master + pull_request: + branches: + - master +jobs: + yamllint: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - uses: ibiqlik/action-yamllint@v3 diff --git a/.rultor.yml b/.rultor.yml index bce0bf6..3301271 100644 --- a/.rultor.yml +++ b/.rultor.yml @@ -1,3 +1,25 @@ +# (The MIT License) +# +# Copyright (c) 2021-2024 Yegor Bugayenko +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the 'Software'), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. +--- docker: image: yegor256/rultor-image:1.21.0 install: |- diff --git a/LICENSE.txt b/LICENSE.txt index 5744f74..1f211e0 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,6 +1,6 @@ (The MIT License) -Copyright (c) 2021-2023 Yegor Bugayenko +Copyright (c) 2021-2024 Yegor Bugayenko Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal diff --git a/README.md b/README.md index fcc2528..f711cad 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,15 @@ +# LaTeX Class for My Books + [![make](https://github.com/yegor256/yb-book/actions/workflows/l3build.yml/badge.svg)](https://github.com/yegor256/yb-book/actions/workflows/l3build.yml) [![CTAN](https://img.shields.io/ctan/v/yb-book)](https://ctan.org/pkg/yb-book) [![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/yegor256/yb-book/blob/master/LICENSE.txt) -This LaTeX class I use to format [my books](https://www.yegor256.com/books.html), +This LaTeX class I use to format +[my books](https://www.yegor256.com/books.html), which I sell [on Amazon](https://www.amazon.com/Yegor-Bugayenko/e/B01AM1QMDK). -First, [install it](https://en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages) +First, +[install it](https://en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages) from [CTAN](https://ctan.org/pkg/yb-book) and then use in the preamble: diff --git a/yb-book.dtx b/yb-book.dtx index 67a0f4f..b01a77c 100644 --- a/yb-book.dtx +++ b/yb-book.dtx @@ -1,7 +1,7 @@ % \iffalse meta-comment % (The MIT License) % -% Copyright (c) 2021-2023 Yegor Bugayenko +% Copyright (c) 2021-2024 Yegor Bugayenko % % Permission is hereby granted, free of charge, to any person obtaining a copy % of this software and associated documentation files (the 'Software'), to deal diff --git a/yb-book.ins b/yb-book.ins index e72072d..2853739 100644 --- a/yb-book.ins +++ b/yb-book.ins @@ -1,6 +1,6 @@ %% (The MIT License) %% -%% Copyright (c) 2021-2023 Yegor Bugayenko +%% Copyright (c) 2021-2024 Yegor Bugayenko %% %% Permission is hereby granted, free of charge, to any person obtaining a copy %% of this software and associated documentation files (the 'Software'), to deal @@ -26,7 +26,7 @@ \preamble (The MIT License) -Copyright (c) 2021-2023 Yegor Bugayenko +Copyright (c) 2021-2024 Yegor Bugayenko Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal