Skip to content

Commit c933f61

Browse files
committed
fix: workflow
1 parent 747f6a8 commit c933f61

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ jobs:
3939
- name: Add poetry-version-plugin
4040
run: poetry self add poetry-version-plugin
4141

42-
- name:
43-
run: git tag v${{ github.event.inputs.version }}
42+
- name: Create tag and push to GitHub
43+
run: |
44+
git tag v${{ github.event.inputs.version }}
45+
git push origin v${{ github.event.inputs.version }}
4446
4547
- name: Builf package
4648
run: poetry build
@@ -50,4 +52,5 @@ jobs:
5052

5153
- uses: ncipollo/release-action@v1
5254
with:
53-
name: Release v${{ github.event.inputs.version }}
55+
name: Release v${{ github.event.inputs.version }}
56+
tag: v${{ github.event.inputs.version }}

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
# Motor Adapter for PyCasbin
2-
3-
[![Test](https://github.com/wf-yamaday/motor-adapter/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/wf-yamaday/motor-adapter/actions/workflows/ci.yml)
2+
[![Test](https://github.com/wf-yamaday/motor-adapter/actions/workflows/ci-test.yml/badge.svg)](https://github.com/wf-yamaday/motor-adapter/actions/workflows/ci-test.yml)
3+
[![Lint](https://github.com/wf-yamaday/motor-adapter/actions/workflows/ci-lint.yml/badge.svg)](https://github.com/wf-yamaday/motor-adapter/actions/workflows/ci-lint.yml)
4+
[![Release](https://github.com/wf-yamaday/motor-adapter/actions/workflows/release.yml/badge.svg)](https://github.com/wf-yamaday/motor-adapter/actions/workflows/release.yml)
45
[![Coverage Status](https://coveralls.io/repos/github/wf-yamaday/motor-adapter/badge.svg?branch=main)](https://coveralls.io/github/wf-yamaday/motor-adapter?branch=main)
6+
![PyPI - Version](https://img.shields.io/pypi/v/casbin_motor_adapter)
7+
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/casbin_motor_adapter)
8+
![PyPI - License](https://img.shields.io/pypi/l/casbin_motor_adapter)
9+
510

611
[Motor](https://motor.readthedocs.io/en/stable/) adapter for [PyCasbin](https://github.com/casbin/pycasbin).
712
With this library, Casbin can load policy from MongoDB or save policy to it.

0 commit comments

Comments
 (0)