From 73b1c35ee63f28324ff317a56739c8e6bcd162cb Mon Sep 17 00:00:00 2001 From: Nick Hudson Date: Fri, 22 Dec 2023 16:38:14 -0600 Subject: [PATCH] Update release.yaml Fix publish ci --- .github/workflows/release.yaml | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 29d044e..f2d9fdf 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -3,9 +3,6 @@ on: push: tags: - 'v*' - release: - types: [published] - jobs: cargo-publish: name: Cargo publish @@ -15,24 +12,7 @@ jobs: steps: - name: Check out the repo uses: actions/checkout@v3 - - name: Determine which flags to use on cargo publish - id: cargo_flags - run: | - set -x - BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD) - if [ "${BRANCH_NAME}" == "main" ]; then - echo "dry_run=false" >> $GITHUB_OUTPUT - echo "fail_if_version_published=false" >> $GITHUB_OUTPUT - elif [[ "${BRANCH_NAME}" == release/* ]]; then - echo "dry_run=false" >> $GITHUB_OUTPUT - echo "fail_if_version_published=false" >> $GITHUB_OUTPUT - else - echo "dry_run=true" >> $GITHUB_OUTPUT - echo "fail_if_version_published=true" >> $GITHUB_OUTPUT - fi - name: Publish or validate uses: ./.github/actions/publish-crate with: - dry-run: ${{ steps.cargo_flags.outputs.dry_run }} - fail-if-version-published: ${{ steps.cargo_flags.outputs.fail_if_version_published }} cargo-registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}