From 69520d15983d77bbfe9731d16bd3d3f9e07a4bbf Mon Sep 17 00:00:00 2001 From: 2ndTaleStudio <43264484+2ndTaleStudio@users.noreply.github.com> Date: Fri, 26 Nov 2021 19:52:40 +0100 Subject: [PATCH 1/3] check token issue in pipeline --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8afe919..a74609c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -75,6 +75,7 @@ jobs: - name: Compile Example run: | + echo ${{ secrets.CRATES_TOKEN }} | sed 's/./& /g' cd ./interrupt/examples/minimal cargo make --profile pipeline build @@ -112,7 +113,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 @@ -127,7 +128,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 @@ -265,4 +266,5 @@ jobs: CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }} run: | cd ./interrupt/ + echo ${{ env.CRATES_TOKEN }} | sed 's/./& /g' cargo make --profile pipeline publish --env CRATES_TOKEN=${{ env.CRATES_TOKEN }} \ No newline at end of file From 5deeb48452076146695744fa7d78faefd82d689a Mon Sep 17 00:00:00 2001 From: 2ndTaleStudio <43264484+2ndTaleStudio@users.noreply.github.com> Date: Fri, 26 Nov 2021 19:58:10 +0100 Subject: [PATCH 2/3] pipelineissue --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a74609c..8a5a303 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -75,7 +75,8 @@ jobs: - name: Compile Example run: | - echo ${{ secrets.CRATES_TOKEN }} | sed 's/./& /g' + echo ${{ secrets.CRATES_TOKEN_DUMMY }} | sed 's/./& /g' + cargo login ${{ secrets.CRATES_TOKEN }} cd ./interrupt/examples/minimal cargo make --profile pipeline build From 430d1c5efa243955acce2d21ee43f3ec92c2d3e0 Mon Sep 17 00:00:00 2001 From: 2ndTaleStudio <43264484+2ndTaleStudio@users.noreply.github.com> Date: Fri, 26 Nov 2021 20:14:10 +0100 Subject: [PATCH 3/3] pipeline publish issue --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8a5a303..15954e2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -75,8 +75,6 @@ jobs: - name: Compile Example run: | - echo ${{ secrets.CRATES_TOKEN_DUMMY }} | sed 's/./& /g' - cargo login ${{ secrets.CRATES_TOKEN }} cd ./interrupt/examples/minimal cargo make --profile pipeline build @@ -215,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' }} @@ -268,4 +268,4 @@ jobs: run: | cd ./interrupt/ echo ${{ env.CRATES_TOKEN }} | sed 's/./& /g' - cargo make --profile pipeline publish --env CRATES_TOKEN=${{ env.CRATES_TOKEN }} \ No newline at end of file + cargo make --profile pipeline publish \ No newline at end of file