Skip to content

Commit a36bcf7

Browse files
authored
Remove publish step from CI pipeline, which is handled by release-plz
1 parent 1780aa0 commit a36bcf7

File tree

1 file changed

+0
-51
lines changed

1 file changed

+0
-51
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -82,57 +82,6 @@ jobs:
8282
# command: publish
8383
# args: --dry-run --manifest-path lychee-bin/Cargo.toml
8484

85-
publish:
86-
if: startsWith(github.ref, 'refs/tags/')
87-
needs:
88-
- test
89-
- lint
90-
- check-feature-flags
91-
- publish-check
92-
runs-on: ubuntu-latest
93-
steps:
94-
- uses: actions/checkout@v4
95-
96-
- name: cargo fetch
97-
uses: actions-rs/cargo@v1
98-
with:
99-
command: fetch
100-
101-
# If there was an issue with the build pipeline, the lib might
102-
# already be published but the binary not. In that case, we
103-
# want to skip over the lib publishing step.
104-
- name: Check if lychee-lib is already published
105-
id: check-release
106-
run: |
107-
VERSION=$(cargo pkgid --manifest-path lychee-lib/Cargo.toml | cut -d "#" -f2)
108-
if cargo search lychee-lib | grep -q \"$VERSION\"; then
109-
echo "Lychee-lib version $VERSION is already published. Skipping."
110-
echo "published=true" >> $GITHUB_OUTPUT
111-
else
112-
echo "published=false" >> $GITHUB_OUTPUT
113-
fi
114-
115-
- name: cargo publish lychee-lib
116-
if: steps.check-release.outputs.published == 'false'
117-
uses: actions-rs/cargo@v1
118-
env:
119-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
120-
with:
121-
command: publish
122-
args: --manifest-path lychee-lib/Cargo.toml
123-
124-
- name: Wait for crates.io publication
125-
run: sleep 60s
126-
shell: bash
127-
128-
- name: cargo publish lychee
129-
uses: actions-rs/cargo@v1
130-
env:
131-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
132-
with:
133-
command: publish
134-
args: --manifest-path lychee-bin/Cargo.toml
135-
13685
check-feature-flags:
13786
runs-on: ubuntu-latest
13887
steps:

0 commit comments

Comments
 (0)