mirror of
https://github.com/sigoden/dufs.git
synced 2026-09-14 11:06:17 +05:00
chore: update ci
This commit is contained in:
parent
9b79f93b3a
commit
c81724a668
2
.github/copilot-instructions.md
vendored
2
.github/copilot-instructions.md
vendored
@ -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
28
.github/workflows/release-please.yaml
vendored
Normal 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
|
||||
9
.github/workflows/release.yaml
vendored
9
.github/workflows/release.yaml
vendored
@ -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:
|
||||
|
||||
3
.release-please-manifest.json
Normal file
3
.release-please-manifest.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
".": "0.45.0"
|
||||
}
|
||||
12
release-please-config.json
Normal file
12
release-please-config.json
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user