From bd6133529c62f6dda258e8666902391f33e3da6a Mon Sep 17 00:00:00 2001 From: Alex Wellnitz Date: Mon, 17 Mar 2025 13:10:33 +0100 Subject: [PATCH] fix: remove github pipelines --- .github/CODEOWNERS | 2 - .github/FUNDING.yml | 1 - .github/ISSUE_TEMPLATE/2_bug_report.yml | 62 -------------- .github/ISSUE_TEMPLATE/3_feature_request.yml | 34 -------- .github/ISSUE_TEMPLATE/config.yml | 5 -- .github/PULL_REQUEST_TEMPLATE.md | 67 --------------- .github/renovate.json | 29 ------- .github/workflows/cd.yml | 36 -------- .github/workflows/ci.yml | 44 ---------- .github/workflows/git-sumi.yml | 24 ------ .github/workflows/upgrade-deps.yml | 89 -------------------- 11 files changed, 393 deletions(-) delete mode 100644 .github/CODEOWNERS delete mode 100644 .github/FUNDING.yml delete mode 100644 .github/ISSUE_TEMPLATE/2_bug_report.yml delete mode 100644 .github/ISSUE_TEMPLATE/3_feature_request.yml delete mode 100644 .github/ISSUE_TEMPLATE/config.yml delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/renovate.json delete mode 100644 .github/workflows/cd.yml delete mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/git-sumi.yml delete mode 100644 .github/workflows/upgrade-deps.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS deleted file mode 100644 index ce7da01..0000000 --- a/.github/CODEOWNERS +++ /dev/null @@ -1,2 +0,0 @@ -* @welpo -i18n/ar.toml @TheAwiteb diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index b6d081d..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -github: welpo diff --git a/.github/ISSUE_TEMPLATE/2_bug_report.yml b/.github/ISSUE_TEMPLATE/2_bug_report.yml deleted file mode 100644 index 95746f9..0000000 --- a/.github/ISSUE_TEMPLATE/2_bug_report.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: "🐛 Bug report" -description: "Did you run into an issue while using tabi?" -labels: ["bug"] -body: -- type: textarea - attributes: - label: "System information" - description: | - Please provide the following information: - - Zola version: Run `zola --version` - - tabi version or commit hash - placeholder: | - Zola version: - tabi version or commit: - validations: - required: true - -- type: textarea - attributes: - label: "Expected behaviour" - description: "Tell us what should have happened." - placeholder: "Describe what you expected tabi to do…" - validations: - required: true - -- type: textarea - attributes: - label: "Actual behaviour" - description: "Tell us what happens instead of the expected behavior." - placeholder: "Describe what actually happened…" - validations: - required: true - -- type: textarea - attributes: - label: "Steps to reproduce" - description: "Please provide detailed steps to reproduce the issue." - placeholder: | - 1. Set up `config.toml` with these settings: … - 2. Create content with this structure: … - 3. Run Zola with these arguments: … - 4. See the following error: … - validations: - required: true - -- type: textarea - attributes: - label: "Additional context" - description: > - Please provide any relevant configuration files, error messages, or screenshots that might help us understand the issue. - You can drag and drop files here to attach them. - validations: - required: false - -- type: checkboxes - attributes: - label: "Final checklist" - options: - - label: "I've checked that the issue isn't already reported." - required: true - - label: "I've tested with the latest version of tabi to check if the issue has already been fixed." - required: true diff --git a/.github/ISSUE_TEMPLATE/3_feature_request.yml b/.github/ISSUE_TEMPLATE/3_feature_request.yml deleted file mode 100644 index 44509e2..0000000 --- a/.github/ISSUE_TEMPLATE/3_feature_request.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: "✨ Feature request" -description: "Suggest an idea for tabi" -labels: ["enhancement"] -body: -- type: textarea - attributes: - label: "Summary and motivation" - description: "Briefly describe the feature and why it would be valuable for tabi users." - placeholder: | - Describe: - - What the feature is - - Why it would be useful - - Any examples from other projects - validations: - required: true - -- type: textarea - attributes: - label: "Implementation details" - description: "Share any ideas you have about how this could be implemented." - placeholder: "Technical suggestions, potential approaches, or specific requirements." - validations: - required: false - -- type: checkboxes - attributes: - label: "Checklist" - options: - - label: "I've searched existing issues to make sure this feature hasn't already been requested." - required: true - - label: "This feature aligns with tabi's philosophy (minimal JS, accessible…)" - required: true - - label: "I'm willing to contribute to the implementation of this feature." - required: false diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml deleted file mode 100644 index 48fd57e..0000000 --- a/.github/ISSUE_TEMPLATE/config.yml +++ /dev/null @@ -1,5 +0,0 @@ -blank_issues_enabled: false -contact_links: - - name: 💬 tabi discussions - url: https://github.com/welpo/tabi/discussions - about: If you have questions or need help, feel free to ask here~ diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 643c368..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,67 +0,0 @@ - - -## Summary - - - -### Related issue - - - -## Changes - - - -### Accessibility - - - -### Screenshots - - - -### Type of change - - - -- [ ] Bug fix (fixes an issue without altering functionality) -- [ ] New feature (adds non-breaking functionality) -- [ ] Breaking change (alters existing functionality) -- [ ] UI/UX improvement (enhances user interface without altering functionality) -- [ ] Refactor (improves code quality without altering functionality) -- [ ] Documentation update -- [ ] Other (please describe below) - ---- - -## Checklist - -- [ ] I have verified the accessibility of my changes -- [ ] I have tested all possible scenarios for this change -- [ ] I have updated `theme.toml` with a sane default for the feature -- [ ] I have updated `config.toml` in [tabi-start](https://github.com/welpo/tabi-start) -- [ ] I have made corresponding changes to the documentation: - - [ ] Updated `config.toml` comments - - [ ] Updated `theme.toml` comments - - [ ] Updated "Mastering tabi" post in English - - [ ] (Optional) Updated "Mastering tabi" post in Spanish - - [ ] (Optional) Updated "Mastering tabi" post in Catalan diff --git a/.github/renovate.json b/.github/renovate.json deleted file mode 100644 index 65967b6..0000000 --- a/.github/renovate.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": ["config:recommended", ":automergeMinor", ":disableDependencyDashboard"], - "commitMessagePrefix": "⬆️", - "commitMessageAction": "chore(deps): update", - "commitMessageTopic": "{{{depName}}}", - "labels": ["dependencies"], - "git-submodules": { - "enabled": true - }, - "packageRules": [ - { - "updateTypes": ["pin"], - "commitMessagePrefix": "📌" - }, - { - "updateTypes": ["major", "minor", "patch", "digest", "bump"], - "commitMessagePrefix": "⬆️" - }, - { - "updateTypes": ["rollback"], - "commitMessagePrefix": "⬇️" - }, - { - "matchFileNames": ["scripts/release/**"], - "automerge": true - } - ] -} diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml deleted file mode 100644 index 9c82ff9..0000000 --- a/.github/workflows/cd.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Continuous Deployment - -on: - push: - tags: - - 'v*.*.*' - -jobs: - deploy: - name: Deploy and release - runs-on: ubuntu-24.04 - permissions: - contents: write - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Generate the changelog - uses: orhun/git-cliff-action@main - id: git-cliff - with: - config: cliff.toml - args: --latest --strip all - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - OUTPUT: CHANGES.md - - - name: Create GitHub release - run: | - gh release create ${{ github.ref_name }} \ - --title "Release ${{ github.ref_name }}" \ - --notes-file CHANGES.md - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 81c9a5f..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: Build Site - -on: - push: - branches: - - main - pull_request: - branches: - - main - -jobs: - check_and_build_pr: - name: Check and Build for Pull Requests - runs-on: ubuntu-latest - if: github.event_name == 'pull_request' - steps: - - name: Checkout Code - uses: actions/checkout@v4 - - - name: Zola Build - uses: shalzz/zola-deploy-action@v0.19.2 - env: - BUILD_ONLY: true - - - name: Zola Check - uses: shalzz/zola-deploy-action@v0.19.2 - env: - BUILD_ONLY: true - CHECK_LINKS: true - - build_and_deploy: - name: Build and Deploy on Main Push - runs-on: ubuntu-24.04 - if: github.event_name == 'push' && github.ref == 'refs/heads/main' - steps: - - name: Checkout Code - uses: actions/checkout@v4 - - - name: Build and Deploy - uses: shalzz/zola-deploy-action@v0.19.2 - env: - PAGES_BRANCH: gh-pages - TOKEN: ${{ secrets.TOKEN }} - BUILD_THEMES: false diff --git a/.github/workflows/git-sumi.yml b/.github/workflows/git-sumi.yml deleted file mode 100644 index fd10442..0000000 --- a/.github/workflows/git-sumi.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Lint pull request title - -on: - pull_request: - types: - - opened - - edited - - synchronize - - ready_for_review - -permissions: - pull-requests: read - -jobs: - main: - name: Run git-sumi - runs-on: ubuntu-24.04 - steps: - - name: Set header length for dependency updates - if: contains(github.event.pull_request.title, 'chore(deps)') - run: echo "GIT_SUMI_MAX_HEADER_LENGTH=80" >> $GITHUB_ENV - - uses: welpo/git-sumi-action@main - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/upgrade-deps.yml b/.github/workflows/upgrade-deps.yml deleted file mode 100644 index 38b7c7e..0000000 --- a/.github/workflows/upgrade-deps.yml +++ /dev/null @@ -1,89 +0,0 @@ -name: Dependency upgrade -on: - workflow_dispatch: - inputs: - dependency: - description: 'Dependency to upgrade' - required: true - type: choice - options: - - all - - mermaid - - katex - schedule: - - cron: '32 4 * * *' - -jobs: - upgrade-dependency: - name: Upgrade dependency - runs-on: ubuntu-24.04 - permissions: - contents: write - pull-requests: write - strategy: - matrix: - dependency: ${{ github.event_name == 'schedule' && fromJson('["mermaid", "katex"]') || fromJson(format('["{0}"]', github.event.inputs.dependency)) }} - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Set up environment - run: | - sudo apt-get update - sudo apt-get install -y jq npm curl git - npm install uglify-js -g - uglifyjs --version - - - name: Configure GPG key - run: | - echo -n ${{ secrets.GPG_PRIVATE_KEY }} | base64 --decode | gpg --import - - - name: Configure Git - run: | - git config --global user.signingkey 33EACFE956484C3940BFEEDCE4EC28F8DFB57474 - git config --global commit.gpgsign true - git config --global user.name "welpo" - git config --global user.email "welpo@users.noreply.github.com" - - - name: Check for existing branch - id: check_branch - run: | - if git ls-remote --heads origin deps/upgrade-${{ matrix.dependency }} | grep -q deps/upgrade-${{ matrix.dependency }}; then - echo "branch_exists=true" >> $GITHUB_OUTPUT - else - echo "branch_exists=false" >> $GITHUB_OUTPUT - fi - - - name: Handle existing branch - if: steps.check_branch.outputs.branch_exists == 'true' - run: | - echo "Branch deps/upgrade-${{ matrix.dependency }} already exists." - echo "Skipping upgrade as there's already an open PR" - exit 0 - - - name: Create and switch to new branch - run: | - git checkout -b deps/upgrade-${{ matrix.dependency }} - - - name: Run upgrade script - shell: bash - run: | - if [[ "${{ matrix.dependency }}" == "all" ]]; then - bash scripts/upgrade-deps --all - else - bash scripts/upgrade-deps --${{ matrix.dependency }} - fi - - - name: Push changes and create PR - shell: bash - run: | - if git diff --quiet HEAD origin/main; then - echo "No changes to push for ${{ matrix.dependency }}" - exit 0 - fi - git push -u origin deps/upgrade-${{ matrix.dependency }} - gh pr create --fill --base main --head deps/upgrade-${{ matrix.dependency }} --label "dependencies" - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}