Skip to content

Commit

Permalink
fix(cd): fetch the dependencies before copying the file to embed
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Aug 18, 2021
1 parent 2d2f1be commit 9e29c95
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,6 @@ jobs:
run: |
mkdir -p target/package/config/
cp config/cliff.toml target/package/config/
for d in /home/runner/.cargo/registry/src/github.com-*/ ; do
mkdir "$d"/config/
cp config/cliff.toml "$d"/config/
done
- name: Publish the library
uses: actions-rs/cargo@v1
with:
Expand All @@ -186,6 +182,18 @@ jobs:
run: |
crate_status="https://raw.githubusercontent.com/rust-lang/crates.io-index/master/gi/t-/git-cliff-core"
until curl -s "$crate_status" | grep -q '"vers":"${{ env.RELEASE_VERSION }}"'; do sleep 5; done;
- name: Fetch the dependencies
uses: actions-rs/cargo@v1
with:
command: fetch
args: --manifest-path git-cliff/Cargo.toml
- name: Prepare the files to embed
shell: bash
run: |
for d in /home/runner/.cargo/registry/src/github.com-*/ ; do
mkdir "$d"/config/
cp config/cliff.toml "$d"/config/
done
- name: Publish the binary
uses: actions-rs/cargo@v1
with:
Expand Down

0 comments on commit 9e29c95

Please sign in to comment.