diff --git a/.github/linters/.markdown-lint.yml b/.github/linters/.markdown-lint.yml new file mode 100644 index 00000000..b9ecdfa9 --- /dev/null +++ b/.github/linters/.markdown-lint.yml @@ -0,0 +1,25 @@ +########################### +## Markdown Linter rules ## +########################### + +# Linter rules doc: +# - https://github.com/DavidAnson/markdownlint + +############### +# Rules by id # +############### +MD004: false # Unordered list style +MD007: + indent: 2 # Unordered list indentation +MD013: + line_length: 808 # Line length +MD026: + punctuation: ".,;:!。,;:" # List of not allowed +MD029: false # Ordered list item prefix +MD033: false # Allow inline HTML +MD036: false # Emphasis used instead of a heading + +################# +# Rules by tags # +################# +blank_lines: false # Error on blank lines diff --git a/.github/workflows/Auto-Release.yml b/.github/workflows/Auto-Release.yml new file mode 100644 index 00000000..b7630bd2 --- /dev/null +++ b/.github/workflows/Auto-Release.yml @@ -0,0 +1,22 @@ +name: Auto-Release + +on: + pull_request: + branches: + - main + types: + - closed + +jobs: + merged: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Auto-Release + uses: PSModule/Auto-Release@main + with: + eventData: ${{ toJson(github.event.pull_request) }} + env: + GH_TOKEN: ${{ github.token }} # Used for GitHub CLI authentication diff --git a/.github/workflows/Linter.yml b/.github/workflows/Linter.yml new file mode 100644 index 00000000..a4427d1d --- /dev/null +++ b/.github/workflows/Linter.yml @@ -0,0 +1,19 @@ +name: Linter + +on: + push: + branches-ignore: + - main + +jobs: + Lint: + name: Lint code base + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Lint code base + uses: github/super-linter@latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 81a2d1d1..ae5ce797 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ -# Actions -Repo for GitHub actions and workflows +# Process-PSModule + +Repository for the PSModule Process-PSModule workflow template. +It stiches together the Initialize, Build, Test, and Publish workflows to create a complete CI/CD pipeline for PowerShell modules.