mirror of
https://github.com/Hopiu/lychee.git
synced 2026-03-17 05:00:26 +00:00
Remove publish step from CI pipeline, which is handled by release-plz
This commit is contained in:
parent
1780aa0daa
commit
a36bcf7f39
1 changed files with 0 additions and 51 deletions
51
.github/workflows/ci.yml
vendored
51
.github/workflows/ci.yml
vendored
|
|
@ -82,57 +82,6 @@ jobs:
|
|||
# command: publish
|
||||
# args: --dry-run --manifest-path lychee-bin/Cargo.toml
|
||||
|
||||
publish:
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
needs:
|
||||
- test
|
||||
- lint
|
||||
- check-feature-flags
|
||||
- publish-check
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: cargo fetch
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fetch
|
||||
|
||||
# If there was an issue with the build pipeline, the lib might
|
||||
# already be published but the binary not. In that case, we
|
||||
# want to skip over the lib publishing step.
|
||||
- name: Check if lychee-lib is already published
|
||||
id: check-release
|
||||
run: |
|
||||
VERSION=$(cargo pkgid --manifest-path lychee-lib/Cargo.toml | cut -d "#" -f2)
|
||||
if cargo search lychee-lib | grep -q \"$VERSION\"; then
|
||||
echo "Lychee-lib version $VERSION is already published. Skipping."
|
||||
echo "published=true" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "published=false" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
- name: cargo publish lychee-lib
|
||||
if: steps.check-release.outputs.published == 'false'
|
||||
uses: actions-rs/cargo@v1
|
||||
env:
|
||||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
||||
with:
|
||||
command: publish
|
||||
args: --manifest-path lychee-lib/Cargo.toml
|
||||
|
||||
- name: Wait for crates.io publication
|
||||
run: sleep 60s
|
||||
shell: bash
|
||||
|
||||
- name: cargo publish lychee
|
||||
uses: actions-rs/cargo@v1
|
||||
env:
|
||||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
||||
with:
|
||||
command: publish
|
||||
args: --manifest-path lychee-bin/Cargo.toml
|
||||
|
||||
check-feature-flags:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
|
|
|||
Loading…
Reference in a new issue