Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 18 additions & 8 deletions .github/workflows/build-n-publish.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
name: Publish Python 🐍 distributions 📦 to PyPI
name: Build and Release Python 🐍 distributions 📦

on:
push:
tags:
- 'v*'
workflow_dispatch: # 手動実行も可能にする

jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-18.04
build-and-release:
name: Build and Release Python 🐍 distributions 📦
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.9
Expand All @@ -28,8 +30,16 @@ jobs:
--wheel
--outdir dist/
.
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Create Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
files: dist/*
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion config/ja_ginza.analysis.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ split_mode = null
factory = "morphologizer"

[components.morphologizer.model]
@architectures = "spacy.Tagger.v1"
@architectures = "spacy.Tagger.v2"
nO = null

[components.morphologizer.model.tok2vec]
Expand Down
2 changes: 1 addition & 1 deletion config/ja_ginza.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ split_mode = null
factory = "morphologizer"

[components.morphologizer.model]
@architectures = "spacy.Tagger.v1"
@architectures = "spacy.Tagger.v2"
nO = null

[components.morphologizer.model.tok2vec]
Expand Down
2 changes: 1 addition & 1 deletion config/ja_ginza_electra.analysis.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ overwrite = true
scorer = {"@scorers":"spacy.morphologizer_scorer.v1"}

[components.morphologizer.model]
@architectures = "spacy.Tagger.v1"
@architectures = "spacy.Tagger.v2"
nO = null

[components.morphologizer.model.tok2vec]
Expand Down
2 changes: 1 addition & 1 deletion config/ja_ginza_electra.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ overwrite = true
scorer = {"@scorers":"spacy.morphologizer_scorer.v1"}

[components.morphologizer.model]
@architectures = "spacy.Tagger.v1"
@architectures = "spacy.Tagger.v2"
nO = null

[components.morphologizer.model.tok2vec]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
name="ginza",
packages=find_packages(include=["ginza"]),
url="https://github.com/megagonlabs/ginza",
version='5.2.0',
version='5.2.1',
)