Skip to content

Commit

Permalink
build: improved continuous delivery target naming (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeveloperC286 authored Dec 12, 2024
1 parent 0e0b953 commit 09ccfc5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ env:
FORCE_COLOR: 1

jobs:
release-artifacts:
name: Release artifacts.
publish-binary:
name: Publish Binary
runs-on: ubuntu-latest
steps:
- name: Download Earthly.
Expand All @@ -23,12 +23,12 @@ jobs:
version: v0.8.15
- name: Checkout code.
uses: actions/checkout@v4
- name: Release artifacts.
run: earthly --ci --secret GH_TOKEN +release-artifacts --release "${GITHUB_REF_NAME}"
- name: Publish binary.
run: earthly --ci --secret GH_TOKEN +publish-binary --release "${GITHUB_REF_NAME}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by GitHub Actions.
publish:
name: Publish.
publish-crate:
name: Publish Crate
runs-on: ubuntu-latest
steps:
- name: Download Earthly.
Expand All @@ -37,7 +37,7 @@ jobs:
version: v0.8.15
- name: Checkout code.
uses: actions/checkout@v4
- name: Publish.
run: earthly --ci --secret CARGO_REGISTRY_TOKEN +publish
- name: Publish crate.
run: earthly --ci --secret CARGO_REGISTRY_TOKEN +publish-crate
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
8 changes: 4 additions & 4 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -206,18 +206,18 @@ end-to-end-test:
RUN ./ci/end-to-end-test.sh


release-artifacts:
publish-binary:
FROM +rust-base
# renovate: datasource=repology depName=alpine_3_20/github-cli versioning=loose
ENV GITHUB_CLI_VERSION="2.47.0-r4"
RUN apk add --no-cache github-cli=$GITHUB_CLI_VERSION
DO +COPY_METADATA
DO +COPY_SOURCECODE
ARG release
RUN --secret GH_TOKEN ./ci/release-artifacts.sh --release "${release}"
RUN --secret GH_TOKEN ./ci/publish-binary.sh --release "${release}"


publish:
publish-crate:
FROM +sourcecode-base
COPY "README.md" "./"
RUN --secret CARGO_REGISTRY_TOKEN ./ci/publish.sh
RUN --secret CARGO_REGISTRY_TOKEN ./ci/publish-crate.sh
File renamed without changes.
File renamed without changes.

0 comments on commit 09ccfc5

Please sign in to comment.