Skip to content

Commit

Permalink
fix: pass in secrets for workflow calls. (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
guocuimi authored Jun 21, 2024
1 parent 6e142c3 commit ed0c74e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,19 @@ jobs:
steps:
- name: Extract version from tag
id: version
run: echo "tag=$(echo ${{ github.ref }} | sed -n 's/refs\/tags\/v//p')" >> $GITHUB_OUTPUT
run: echo "tag=$(echo ${{ github.ref }} | sed -n 's/refs\/tags\///p')" >> $GITHUB_OUTPUT

# Run tests on release
release-test:
uses: ./.github/workflows/release_test.yml
secrets: inherit

# build wheel for release if tests pass
build-wheel:
uses: ./.github/workflows/build_wheel.yml
with:
tag: ${{ needs.version-tag.outputs.tag }}
secrets: inherit
needs:
- version-tag
- release-test
Expand All @@ -35,6 +37,7 @@ jobs:
uses: ./.github/workflows/publish_wheel.yml
with:
tag: ${{ needs.version-tag.outputs.tag }}
secrets: inherit
needs:
- version-tag
- build-wheel
Expand All @@ -44,13 +47,15 @@ jobs:
uses: ./.github/workflows/publish_cpp_image.yml
with:
tag: ${{ needs.version-tag.outputs.tag }}
secrets: inherit
needs:
- version-tag
- publish-wheel

# publish docs to gh-pages for new release
publish_docs:
uses: ./.github/workflows/publish_docs.yml
secrets: inherit
needs:
- publish-wheel

Expand Down

0 comments on commit ed0c74e

Please sign in to comment.