diff --git a/.changes/config.json b/.changes/config.json index cba073e..8e33aee 100644 --- a/.changes/config.json +++ b/.changes/config.json @@ -1,25 +1,15 @@ { "gitSiteUrl": "https://github.com/swpu-acm/online-judge/", "pkgManagers": { - "javascript": { - "version": true, - "getPublishedVersion": { - "use": "fetch:check", - "options": { - "url": "https://api.github.com/repos/swpu-acm/online-judge/git/refs/tags/online-judge-v${ pkg.pkgFile.version }" - } - }, - "publish": ["npm publish --provenance --access public"] - }, "rust": { "version": true, "getPublishedVersion": { "use": "fetch:check", "options": { - "url": "https://api.github.com/repos/swpu-acm/online-judge/git/refs/tags/online-judge-v${ pkg.pkgFile.version }" + "url": "https://crates.io/api/v1/crates/${ pkg.pkg }/${ pkg.pkgFile.version }" } }, - "publish": [] + "publish": ["cargo publish --no-verify --allow-dirty"] } }, "packages": { diff --git a/.github/workflows/covector-version-or-publish.yml b/.github/workflows/covector-version-or-publish.yml index 53456bd..13551e1 100644 --- a/.github/workflows/covector-version-or-publish.yml +++ b/.github/workflows/covector-version-or-publish.yml @@ -27,6 +27,8 @@ jobs: with: fetch-depth: 0 # required for use of git history - uses: actions/setup-node@v4 + - name: cargo login + run: cargo login ${{ secrets.crate_token }} - name: git config run: | git config --global user.name "${{ github.event.pusher.name }}"