Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add cd.yaml #21

Merged
merged 1 commit into from Nov 14, 2022
Merged

add cd.yaml #21

merged 1 commit into from Nov 14, 2022

Conversation

autotaker
Copy link
Contributor

#19
This PR adds a workflow (Continuous delivery) to publish crates to crates.io.

Spec

Trigger

Continuous delivery workflow is triggered by pushing tags to the remote repository.
Tag must be of the form vX.Y.Z or vX.Y.Z-SUFFIX.
A tag with suffix means pre-release version and it enables --dry-run mode.

Secrets

Please set CARGO_REGISTRY_TOKEN for the authentication token for crates.io.

Jobs

  • test
    • This job runs several tests defined in ci.yaml.
  • publish
    • This job publishes crates (apalis-core, apalis-cron, apalis-redis, apalis-sql, and apalis) in an appropriate order.
    • If there are some inconsistencies between the tag version and a package version (written in Cargo.toml), the job fails before pushing the crates.

Test

I have created v0.3.4-rc10 tag and confirmed that the workflow succeeds.
https://github.com/autotaker/apalis/actions/runs/3355470587

Other changes

  • Trigger of ci.yaml is changed
    • CI for topic branch runs only after creating a pull request. (push trigger is limited to master/develop)
    • Add workflow_call trigger to call CI workflow from CD workflow.

@geofmureithi
Copy link
Owner

Looks good to me.
I will merge and do a release over the weekend.

@geofmureithi geofmureithi merged commit add3c9f into geofmureithi:develop Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants