Skip to content

Commit

Permalink
ensure artifacts folder exists when deploying rust bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-if committed Oct 25, 2024
1 parent 80f304e commit 9f4cd32
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
branches:
- '**'
push:
branches:
- master
# branches:
# - master

jobs:
lint:
Expand All @@ -27,6 +27,24 @@ jobs:
- name: Install packages
run: yarn --non-interactive --ignore-scripts

- name: list files
run: ls

# - name: folder doesnt exist
# run: |
# if [ -z "$(ls -A './artifacts')" ]; then
# echo "artifacts folder didnt exist"
# exit 1
# fi

- name: folder exists
run: |
mkdir artifacts
if [ -z "$(ls -A './artifacts')" ]; then
echo "artifacts folder existed, is empty"
exit 1
fi
# Necessary since `--frozen-lockfile` does not work properly in yarn 1.x.
# https://github.com/yarnpkg/yarn/issues/5840
- name: Check for lockfile changes
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/deploy-npm-ironfish-rust-nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ jobs:
run: ls -R .
shell: bash

- name: Verify artifacts exist
run: |
if [ -z "$(ls -A './artifacts')" ]; then
echo "artifacts folder was empty. ironfish-rust-nodejs artifacts were not uploaded correctly."
exit 1
fi
- name: Move and publish artifacts
run: yarn artifacts

Expand Down

0 comments on commit 9f4cd32

Please sign in to comment.