generated from alecodes/base-template
chore: add semantic version to pipeline
This commit is contained in:
parent
e0b259cc6f
commit
5bd421f12b
3 changed files with 43 additions and 19 deletions
|
|
@ -6,8 +6,25 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
bump-crate:
|
||||||
|
runs-on: rust
|
||||||
|
steps:
|
||||||
|
- run: cargo install cargo-bump
|
||||||
|
- name: Bump version and publish
|
||||||
|
uses: https://github.com/cocogitto/cocogitto-action@v3.10
|
||||||
|
env:
|
||||||
|
NPM_REGISTRY_TOKEN: ${{ secrets.NPM_TOKEN_FORGEJO }}
|
||||||
|
with:
|
||||||
|
release: true
|
||||||
|
check-latest-tag-only: true
|
||||||
|
git-user: 'Cog Bot'
|
||||||
|
git-user-email: 'cog@alecodes.page'
|
||||||
|
|
||||||
|
|
||||||
create-docker-images:
|
create-docker-images:
|
||||||
runs-on: host
|
runs-on: host
|
||||||
|
needs:
|
||||||
|
- bump-crate
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
|
||||||
9
cog.toml
9
cog.toml
|
|
@ -7,8 +7,13 @@ generate_mono_repository_package_tags = true
|
||||||
branch_whitelist = []
|
branch_whitelist = []
|
||||||
skip_ci = "[skip ci]"
|
skip_ci = "[skip ci]"
|
||||||
skip_untracked = false
|
skip_untracked = false
|
||||||
pre_bump_hooks = []
|
pre_bump_hooks = [
|
||||||
post_bump_hooks = []
|
"sed -E -i 's/(\"version\":) \"[0-9.]{5}\"/\\1 \"{{version|0.0.1}}\"/gi' package.json",
|
||||||
|
"cargo build --release",
|
||||||
|
"echo 'bumping from {{latest|0.0.0}} to {{version|0.0.1}}'",
|
||||||
|
"cargo bump {{version|0.0.1}}",
|
||||||
|
]
|
||||||
|
post_bump_hooks = ["git push", "git push origin {{version_tag}}"]
|
||||||
pre_package_bump_hooks = []
|
pre_package_bump_hooks = []
|
||||||
post_package_bump_hooks = []
|
post_package_bump_hooks = []
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "compendium",
|
"name": "compendium",
|
||||||
"module": "index.ts",
|
"module": "index.ts",
|
||||||
|
"version": "0.0.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@alecodes/bun-plugin-sass": "^0.1.2",
|
"@alecodes/bun-plugin-sass": "^0.1.2",
|
||||||
"@alecodes/bun-static-builder": "^0.1.0",
|
"@alecodes/bun-static-builder": "^0.1.0",
|
||||||
|
|
@ -16,3 +17,4 @@
|
||||||
"htmx.org": "2.0.4"
|
"htmx.org": "2.0.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue