chore: update ci

This commit is contained in:
Johannes Zitz 2026-02-07 00:26:03 +01:00
parent 9b79f93b3a
commit c81724a668
5 changed files with 49 additions and 5 deletions

View File

@ -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.

28
.github/workflows/release-please.yaml vendored Normal file
View File

@ -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

View File

@ -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:

View File

@ -0,0 +1,3 @@
{
".": "0.45.0"
}

View File

@ -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"
}
}
}