Skip to content

Commit

Permalink
Merge pull request #15 from RusPiRo/fix/macro_dependency
Browse files Browse the repository at this point in the history
Fix github actions on branch builds
  • Loading branch information
2ndTaleStudio authored Apr 18, 2021
2 parents e17626a + 444b8a5 commit 2ad61ab
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ jobs:
with:
version: 'latest'

- if: ${{ github.event_name != 'pull_request' }}
name: Remove patches if not a PR build
run: |
sed -i "/{^\[patch\.crates-io\] /{:a;N;/\Z}/!ba};/^ruspiro-.*\(git\|path\).*/d" ./interrupt/Cargo.toml;
# - if: ${{ github.event_name != 'pull_request' }}
# name: Remove patches if not a PR build
# run: |
# sed -i "/{^\[patch\.crates-io\] /{:a;N;/\Z}/!ba};/^ruspiro-.*\(git\|path\).*/d" ./interrupt/Cargo.toml;

- name: Compile
run: |
Expand Down Expand Up @@ -217,7 +217,13 @@ jobs:
# and the README.md
sed -i -e 's/||VERSION||/'$CRATE_VERSION'/g' README.md
# as macros are published now - do the dry run for interrupt followed by the real publish
- name: Publish-Dry-Run
run: |
cd ./interrupt/
cargo make publish_dry --profile pipeline
- name: Publish-Run
run: |
cd ../interrupt/
cd ./interrupt/
cargo make publish --env CRATES_TOKEN=${{ secrets.CRATES_TOKEN }}

0 comments on commit 2ad61ab

Please sign in to comment.