diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 04904899..00000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,63 +0,0 @@ -name: Deploy - -on: - workflow_dispatch: - inputs: - version: - description: 'Semantic version number' - required: true - changes: - description: 'Description of changes' - required: true - -env: - GO_VERSION: "^1.18" - JAVA_VERSION: 11 - -jobs: - deploy: - name: Deploy - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Setup Java - uses: actions/setup-java@v3 - with: - java-version: ${{ env.JAVA_VERSION }} - - - name: Setup Go - uses: actions/setup-go@v4 - with: - go-version: ${{ env.GO_VERSION }} - - - name: Setup Bazelisk - run: | - go get github.com/bazelbuild/bazelisk - export PATH=$PATH:$(go env GOPATH)/bin - - - name: Import GPG key - id: import_gpg - uses: crazy-max/ghaction-import-gpg@v6 - with: - gpg_private_key: ${{ secrets.MAVEN_KEY }} - passphrase: ${{ secrets.MAVEN_KEY_PASSPHRASE }} - - - name: Update version number - run: echo 'version="${{ github.event.inputs.version }}"' > version.bzl - - - name: Tag & commit version number - uses: EndBug/add-and-commit@v9 # You can change this to use a specific version. - with: - add: 'version.bzl' - message: 'chore(*): Bump version number to ${{ github.event.inputs.version }}' - push: true - tag: "${{ github.event.inputs.version }} --force" - tag_push: '--force' - - - name: Deploy to Maven - run: | - export GPG_TTY=$(tty) - bazelisk run --stamp --define "maven_repo=https://s01.oss.sonatype.org/service/local/staging/deploy/maven2" --define "maven_user=${{ secrets.MAVEN_USERNAME }}" --define "maven_password=${{ secrets.MAVEN_PASSWORD }}" --define gpg_sign=true //java/main/java/org/odict:odict.publish - \ No newline at end of file diff --git a/justfile b/justfile index ba0fa0ce..34b143b2 100644 --- a/justfile +++ b/justfile @@ -13,6 +13,9 @@ build +args="": cargo build -p cli {{args}} +publish +args="": + cargo publish -p odict {{args}} + # @build-all +args="": deps (cli "schema") sync # goreleaser build --id odict --clean {{args}} diff --git a/lib/Cargo.toml b/lib/Cargo.toml index f1ad87d0..039e4b82 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -1,7 +1,11 @@ [package] name = "odict" +description = "A blazingly-fast dictionary file format for human languages" +homepage = "https://odict.org" +repository = "https://github.com/TheOpenDictionary/odict" version = "2.0.0-beta.0" edition = "2021" +license = "MIT" [features] json = ["dep:serde_json"]