From adf170df3ff65295102cd6ed817ed8e5c5dd7be2 Mon Sep 17 00:00:00 2001 From: Maxim Andreev Date: Tue, 10 Sep 2024 19:50:43 +0300 Subject: [PATCH] run cargo publish earlier on release to exclude ./dist-py --- .github/workflows/build.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6ab74ce..83f4ba8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -138,11 +138,18 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 # need tags to generate release notes + + - name: Publish rust + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_TOKEN }} + run: cargo publish --allow-dirty + - name: Install Node uses: actions/setup-node@v4 with: node-version: 20 registry-url: 'https://registry.npmjs.org/' + - name: Release Notes run: | echo '## Changes since previous release:' > changelog.md @@ -173,11 +180,6 @@ jobs: javascript/evmole-*.tgz dist-py/* - - name: Publish rust - env: - CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_TOKEN }} - run: cargo publish --allow-dirty - - name: Publish javascript env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}