From c81724a66828d8bbefcc1314aba86f5bbe4f4d62 Mon Sep 17 00:00:00 2001 From: Johannes Zitz Date: Sat, 7 Feb 2026 00:26:03 +0100 Subject: [PATCH] chore: update ci --- .github/copilot-instructions.md | 2 +- .github/workflows/release-please.yaml | 28 +++++++++++++++++++++++++++ .github/workflows/release.yaml | 9 +++++---- .release-please-manifest.json | 3 +++ release-please-config.json | 12 ++++++++++++ 5 files changed, 49 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/release-please.yaml create mode 100644 .release-please-manifest.json create mode 100644 release-please-config.json diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 9853b31..c48e722 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -24,7 +24,7 @@ - After changes, regularly run `cargo test` , `cargo fmt --all --check` and `cargo clippy --all --all-targets` and fix any failures. ## Commit conventions -- Use Conventional Commits prefixes: `feat:`, `fix:`, `chore:`. +- Use Conventional Commits prefixes: `feat:`, `fix:`, `chore:`. accoding to https://www.conventionalcommits.org/en/v1.0.0/#summary ## Patterns to follow when changing behavior - Use `IndexData`/`PathItem` for any directory listing or UI data changes; keep JSON and HTML outputs consistent. diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release-please.yaml new file mode 100644 index 0000000..81385bb --- /dev/null +++ b/.github/workflows/release-please.yaml @@ -0,0 +1,28 @@ +name: Release Please + +on: + push: + branches: [main] + workflow_dispatch: + +permissions: + contents: write + issues: write + pull-requests: write + +concurrency: + group: release-please-${{ github.ref }} + cancel-in-progress: true + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - name: Run release-please (manifest) + id: rp + uses: googleapis/release-please-action@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + config-file: release-please-config.json + manifest-file: .release-please-manifest.json + target-branch: main diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e91ec12..de338c0 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -3,7 +3,8 @@ name: Release on: push: tags: - - v[0-9]+.[0-9]+.[0-9]+* + - .*v[0-9]+.[0-9]+.[0-9]+* + workflow_dispatch: jobs: release: @@ -147,7 +148,7 @@ jobs: docker: name: Publish to Docker Hub - if: startsWith(github.ref, 'refs/tags/') + if: false runs-on: ubuntu-latest needs: release steps: @@ -158,7 +159,7 @@ jobs: - name: Login to DockerHub uses: docker/login-action@v3 with: - username: ${{ github.repository_owner }} + username: ${{ github.repository_owner }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push uses: docker/build-push-action@v5 @@ -177,7 +178,7 @@ jobs: publish-crate: name: Publish to crates.io - if: ${{ needs.release.outputs.rc == 'false' }} + if: false runs-on: ubuntu-latest needs: release steps: diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..e564a44 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "0.45.0" +} diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..2bfc784 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", + "bump-minor-pre-major": true, + "last-release-sha": "23619033ae308e5a60494704be0e51c481a0d03c", + "packages": { + ".": { + "release-type": "rust", + "package-name": "dufs", + "changelog-path": "CHANGELOG.md" + } + } +}