Skip to content

Commit

Permalink
run cargo publish earlier on release to exclude ./dist-py
Browse files Browse the repository at this point in the history
  • Loading branch information
cdump committed Sep 10, 2024
1 parent 3428e84 commit adf170d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit adf170d

Please sign in to comment.