diff --git a/.fotingorc b/.fotingorc deleted file mode 100644 index fba0337..0000000 --- a/.fotingorc +++ /dev/null @@ -1,8 +0,0 @@ -{ - "git": { - "baseBranch": "main" - }, - "github": { - "baseBranch": "main" - } -} diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml deleted file mode 100644 index 253bcb7..0000000 --- a/.github/dependabot.yaml +++ /dev/null @@ -1,6 +0,0 @@ -version: 2 -updates: - - package-ecosystem: github-actions - directory: / - schedule: - interval: daily diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 0000000..32417a5 --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,3 @@ +{ + "extends": ["github>open-turo/renovate-config#v1"] +} diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 85a4f0c..e2f01c5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,17 +10,10 @@ jobs: name: Lint runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - uses: mfinelli/setup-shfmt@v3 - - name: Install actionlint - uses: open-turo/action-install-release@v1 + - uses: open-turo/actions-gha/lint@v2 with: - repository: rhysd/actionlint - - name: Pre-commit - uses: open-turo/action-pre-commit@v3 + github-token: ${{ secrets.GITHUB_TOKEN }} test: name: Test diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e4c9bc1..363f603 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -46,15 +46,6 @@ jobs: run: pip install mkdocs[i18n] mkdocs-material - name: Install Pillow and CairoSVG (required for social card generation) run: pip install mkdocs-material - - name: Semantic Release - uses: cycjimmy/semantic-release-action@v4 - with: - # You can specify specifying version range for the extra plugins if you prefer. - extra_plugins: | - @open-turo/semantic-release-config - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Setup caching uses: actions/cache@v4 with: @@ -65,6 +56,20 @@ jobs: - name: Upload artifact uses: actions/upload-pages-artifact@v3 + release: + needs: + - build + - test + name: Release + runs-on: ubuntu-latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: open-turo/actions-gha/release@v2 + # Deployment job deploy: environment: @@ -72,8 +77,7 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest needs: - - build - - test + - release steps: - name: Deploy to GitHub Pages id: deployment diff --git a/.github/workflows/update-dependencies.yaml b/.github/workflows/update-dependencies.yaml new file mode 100644 index 0000000..b74fd98 --- /dev/null +++ b/.github/workflows/update-dependencies.yaml @@ -0,0 +1,23 @@ +name: Update dependencies +concurrency: update-dependencies + +on: + schedule: + # Every day at midnight + - cron: "0 0 * * *" + workflow_dispatch: + issue_comment: + types: + - edited + pull_request: + types: + - edited + +jobs: + update-dependencies: + runs-on: ubuntu-latest + name: Update dependencies + steps: + - uses: open-turo/action-renovate@v1 + with: + github-token: ${{ secrets.OPEN_TURO_GITHUB_TOKEN }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3b19c15..697576c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,27 +1,28 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.4.0 # Use the ref you want to point at + rev: v4.6.0 # Use the ref you want to point at hooks: - id: check-json - id: check-yaml - - id: pretty-format-json - args: - - --autofix - id: end-of-file-fixer - id: trailing-whitespace + - repo: https://github.com/pre-commit/mirrors-eslint + rev: v9.6.0 + hooks: + - id: eslint - repo: https://github.com/pre-commit/mirrors-prettier - rev: v2.3.0 + rev: v3.1.0 hooks: - id: prettier stages: [commit] - repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook - rev: v4.1.0 + rev: v9.16.0 hooks: - id: commitlint stages: [commit-msg] additional_dependencies: ["@open-turo/commitlint-config-conventional"] - repo: https://github.com/rhysd/actionlint - rev: v1.6.23 + rev: v1.7.1 hooks: - id: actionlint - repo: https://github.com/jumanjihouse/pre-commit-hooks diff --git a/mkdocs.yml b/mkdocs.yaml similarity index 100% rename from mkdocs.yml rename to mkdocs.yaml