generated from the-common/project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(many): Incorporate 3.0.3 version of The common Ansible role …
…template(CI fixes) Signed-off-by: 林博仁(Buo-ren Lin) <[email protected]>
- Loading branch information
Showing
25 changed files
with
879 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Git path attributes configuration file | ||
# | ||
# References: | ||
# | ||
# * Git - Git Attributes | ||
# https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes | ||
# * Git - gitattributes Documentation | ||
# https://www.git-scm.com/docs/gitattributes | ||
# | ||
# Copyright 2024 林博仁(Buo-ren Lin) <[email protected]> | ||
# SPDX-License-Identifier: CC-BY-SA-4.0 | ||
|
||
# Avoid exporting development files to release archive | ||
/.* export-ignore | ||
/continuous-integration export-ignore | ||
|
||
# Keep editorconfig for ease of editing of product files | ||
/.editorconfig -export-ignore | ||
|
||
# Keep REUSE DEP5 declaration file in the release archive for legal | ||
# conformance | ||
/.reuse/ -export-ignore | ||
/.reuse/* export-ignore | ||
/.reuse/dep5 -export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# Release product and their build aritfacts | ||
# | ||
# References: | ||
# | ||
# * Workflow syntax for GitHub Actions - GitHub Docs | ||
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions | ||
# | ||
# Copyright 2024 林博仁(Buo-ren Lin) <[email protected]> | ||
# SPDX-License-Identifier: CC-BY-SA-4.0 | ||
name: Release product and their build aritfacts | ||
on: | ||
push: | ||
tags: | ||
- v*.*.* | ||
|
||
jobs: | ||
release: | ||
name: Release product and their build aritfacts | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Check out content from the Git repository | ||
uses: actions/checkout@v4 | ||
with: | ||
# Increase fetch depth if you may have more than this amount | ||
# of revisions between releases | ||
fetch-depth: 100 | ||
|
||
# Fetch tags as well to generate detailed changes between two releases | ||
# WORKAROUND: Adding this option triggers actions/checkout#1467 | ||
#fetch-tags: true | ||
|
||
- name: >- | ||
WORKAROUND: Fetch tags that points to the revisions | ||
checked-out(actions/checkout#1467) | ||
run: |- | ||
git fetch \ | ||
--prune \ | ||
--prune-tags \ | ||
--force \ | ||
--depth=100 \ | ||
--no-recurse-submodules | ||
- name: Determine the project identifier | ||
run: printf "project_id=${GITHUB_REPOSITORY##*/}\\n" >> $GITHUB_ENV | ||
|
||
- name: Determine the name of the Git tag | ||
run: printf "release_tag=${GITHUB_REF##*/}\\n" >> $GITHUB_ENV | ||
|
||
- name: Determine the release version string | ||
run: printf "release_version=${release_tag#v}\\n" >> $GITHUB_ENV | ||
|
||
- name: Determine the release identifier | ||
run: printf "release_id=${project_id}-${release_version}\\n" >> $GITHUB_ENV | ||
|
||
- name: >- | ||
Patch the sudo security policy so that programs run via sudo | ||
will recognize environment variables predefined by GitHub | ||
run: sudo ./continuous-integration/patch-github-actions-sudo-security-policy.sh | ||
- name: Generate the release archive | ||
run: |- | ||
sudo ./continuous-integration/generate-build-artifacts.install-system-deps.sh | ||
./continuous-integration/generate-build-artifacts.sh | ||
- name: Generate the release description | ||
run: ./continuous-integration/generate-release-description.sh | ||
|
||
- name: Publish the release archive to the GitHub Releases | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
name: ${{ env.project_id }} ${{ env.release_version }} | ||
files: | | ||
${{ env.release_id }}.tar* | ||
body_path: .detailed_changes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,46 @@ | ||
# Markdownlint(Node.js variant) configuration file | ||
# https://github.com/igorshubovych/markdownlint-cli#configuration | ||
# | ||
# This file is based on The Common Markdownlint(Node.js variant) Configuration Templates project | ||
# https://github.com/Lin-Buo-Ren/common-markdownlint-nodejs-config-templates | ||
# This file is based on The Common Markdownlint(Node.js variant) | ||
# Configuration Templates project | ||
# https://github.com/the-common/markdownlint-nodejs-config-templates | ||
# | ||
# Copyright 2021 林博仁(Buo-ren, Lin) <Buo.Ren.Lin@gmail.com> | ||
# Copyright 2024 林博仁(Buo-ren Lin) <buo.ren.lin@gmail.com> | ||
# SPDX-License-Identifier: CC-BY-SA-4.0 | ||
|
||
# Inherit Markdownlint rules | ||
default: True | ||
|
||
# Only allow consistent un-ordered list bullet style(allow alternations in sub-levels) | ||
MD004: | ||
# Only allow consistent un-ordered list bullet style(allow alternations | ||
# in sub-levels) | ||
ul-style: | ||
style: sublist | ||
|
||
# Only allow 4 spaces as indentation of lists | ||
MD007: | ||
ul-indent: | ||
indent: 4 | ||
|
||
# Only allow 2 spaces as linebreak sequence | ||
MD009: | ||
no-trailing-spaces: | ||
br_spaces: 2 | ||
|
||
# Disable line length limitation(not suitable with CJK context) | ||
MD013: False | ||
line-length: False | ||
|
||
# Allow missing padding blank line between the heading markup and the context | ||
MD022: False | ||
blanks-around-headings: False | ||
|
||
# Allow duplicated non-sibling heading text | ||
MD024: | ||
no-duplicate-heading: | ||
siblings_only: True | ||
|
||
# Allow missing padding blank line between a list and its context | ||
MD032: False | ||
blanks-around-lists: False | ||
|
||
# Allow using raw HTML markups as workarounds of deficiencies of Markdown | ||
MD033: False | ||
|
||
# 佔位字是要被替換掉的,為此規則之特例 | ||
MD036: false | ||
no-inline-html: False | ||
|
||
# Allow using YAML front matter, while not require the definition of the | ||
# `title` property | ||
MD041: | ||
first-line-h1: | ||
front_matter_title: '.*' |
Oops, something went wrong.