File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -160,4 +160,15 @@ jobs:
160160 NODE_OPTIONS : --no-deprecation
161161 - run : sudo apt-get update && sudo apt-get install -y unixodbc-dev
162162 - name : Publish to crates.io
163- run : cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}
163+ run : |
164+ set +e
165+ cargo publish --token ${{ secrets.CRATES_IO_TOKEN }} 2>&1 | tee cargo-publish.log
166+ status=${PIPESTATUS[0]}
167+ set -e
168+ if [ "$status" -ne 0 ]; then
169+ if grep -Eiq 'already (uploaded|exists)|version .* is already' cargo-publish.log; then
170+ echo "sqlpage ${GITHUB_REF_NAME#v} is already published on crates.io"
171+ else
172+ exit "$status"
173+ fi
174+ fi
Original file line number Diff line number Diff line change 1- FROM rust:1.91 -alpine AS builder
1+ FROM rust:1.95 -alpine AS builder
22RUN rustup component add clippy rustfmt
33RUN apk add --no-cache musl-dev zip
44WORKDIR /usr/src/sqlpage
@@ -16,4 +16,4 @@ RUN mv target/release/sqlpage bootstrap && \
1616FROM public.ecr.aws/lambda/provided:al2 AS runner
1717COPY --from=builder /usr/src/sqlpage/bootstrap /main
1818COPY --from=builder /usr/src/sqlpage/index.sql ./index.sql
19- ENTRYPOINT ["/main" ]
19+ ENTRYPOINT ["/main" ]
You can’t perform that action at this time.
0 commit comments