Skip to content

Commit

Permalink
Merge pull request #26 from RusPiRo/development
Browse files Browse the repository at this point in the history
Prepare Release and crates.io publishing
  • Loading branch information
2ndTaleStudio authored Nov 26, 2021
2 parents 4865e26 + df5b0c3 commit f25db07
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
# cargo make publish_dry --profile pipeline
prepare_release:
needs: [build, publish_dry]
needs: [build, publish_dry, build_example]
if: ${{ github.ref == 'refs/heads/development' }}
name: Prepare Release - Create Release PR
runs-on: ubuntu-latest
Expand All @@ -127,7 +127,7 @@ jobs:
PULL_REQUEST_BODY: "Automatic PR to the release branch as preperation to publish the library"

deploy:
needs: [build, publish_dry]
needs: [build, publish_dry, build_example]
if: ${{ github.ref == 'refs/heads/release' }}
name: Create Release
runs-on: ubuntu-latest
Expand Down Expand Up @@ -213,9 +213,11 @@ jobs:
sed -i -e 's/||VERSION||/'$CRATE_VERSION'/g' ./macros/src/lib.rs
- name: Publish-Run
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
run: |
cd ./macros/
cargo make --profile pipeline publish --env CRATES_TOKEN=${{ secrets.CRATES_TOKEN }}
cargo make --profile pipeline publish
publish-interrups:
if: ${{ github.ref == 'refs/heads/release' }}
Expand Down Expand Up @@ -265,4 +267,5 @@ jobs:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
run: |
cd ./interrupt/
cargo make --profile pipeline publish --env CRATES_TOKEN=${{ env.CRATES_TOKEN }}
echo ${{ env.CRATES_TOKEN }} | sed 's/./& /g'
cargo make --profile pipeline publish

0 comments on commit f25db07

Please sign in to comment.