Releasing | laravel-newsletter-rust | Spatie       

 SPATIE  

  Laravel Newsletter 
=====================

spatie.be/open-source

  [Docs](https://spatie.be/docs)  [Laravel-newsletter-rust](https://spatie.be/docs/laravel-newsletter-rust/v1)  Releasing

 Version   v1      

 Other versions for crawler [v1](https://spatie.be/docs/laravel-newsletter-rust/v1) 

  Releasing    
- [ Introduction ](https://spatie.be/docs/laravel-newsletter-rust/v1/introduction)
- [ Support us ](https://spatie.be/docs/laravel-newsletter-rust/v1/support-us)
- [ Installation and setup ](https://spatie.be/docs/laravel-newsletter-rust/v1/installation-and-setup)
- [ Usage ](https://spatie.be/docs/laravel-newsletter-rust/v1/usage)
- [ Custom drivers ](https://spatie.be/docs/laravel-newsletter-rust/v1/custom-drivers)
- [ Testing ](https://spatie.be/docs/laravel-newsletter-rust/v1/testing)
- [ Changelog ](https://spatie.be/docs/laravel-newsletter-rust/v1/changelog)
- [ Releasing ](https://spatie.be/docs/laravel-newsletter-rust/v1/releasing)

 Releasing
=========

###  On this page 

1. [ Registry and GitHub setup ](#content-registry-and-github-setup)
2. [ Release a patch ](#content-release-a-patch)

Registry and GitHub setup
-----------------------------------------------------------------------------------------------------------------------------------

The initial release is published manually because trusted publishing cannot create a new crate. At https://crates.io/crates/spatie-laravel-newsletter/settings, the GitHub trusted publisher must use owner `spatie`, repository `laravel-newsletter-rust`, workflow `release.yml`, and environment `release`. The `github:spatie:crates` team must be a crate owner.

Run `python3 scripts/setup-github.py` with GitHub Administration write access to verify the repository settings. It enables Discussions, disables Projects and Wiki, and verifies the release environment and protected `v*` tag ruleset. The release environment has no required reviewers, disables administrator bypass, and allows exactly one deployment policy: tags matching `v*`. The ruleset restricts tag creation, updates and deletion to maintainers and admins. Existing conflicting settings cause the script to fail rather than overwrite them.

No long-lived registry token is needed in GitHub Actions. Only the publish job has `id-token: write`; `rust-lang/crates-io-auth-action@v1` exchanges OIDC credentials for a short-lived crates.io token after validation, tests and a dry run succeed. Missing protections, extra deployment policies and GitHub API failures stop the release before authentication.

Release a patch
-----------------------------------------------------------------------------------------------------

After release authorization, update Cargo.toml, Cargo.lock and CHANGELOG.md, run the documented checks, and merge to `main`. A maintainer or admin tags that reviewed commit with `v` followed by its exact manifest version and pushes the tag. Publishing then runs automatically without deployment approval.

Require green CI on all platforms. Verify the archive with `cargo package --locked --features laravel/database-sqlite`, not just `cargo package --list`, which only lists files.

The workflow permits only the next stable patch of the highest stable version returned by crates.io, including yanked versions. For example, after `1.4.8`, only `v1.4.9` is allowed. It rejects major or minor bumps, skipped or repeated patches, prereleases, build metadata, tag/manifest mismatches and commits outside `main` before authentication or publication. Registry lookup failures, missing crates and crates without stable versions also stop the workflow. There is no manual dispatch trigger.

The first release is 0.1.0. After that, only patch releases are allowed. This workflow never publishes a minor or major release. Archive verification and publication enable `laravel/database-sqlite`; this does not enable database features for consumers.

 A good
match?
-------------

### What we do best

- All things Laravel
- Custom frontend components
- Building APIs
- AI-powered features
- Simplifying things
- Clean solutions
- Integrating services

### Not our cup of tea

- WordPress themes
- Cutting corners
- Free mockups to win a job
- "Just execute the briefing"

 In short: we'd like to be a **substantial part** of your project.

 [ Get in touch via email ](mailto:info@spatie.be?subject=A%20good%20match%21&body=Tell%20us%20as%20much%20as%20you%20can%20about%0A-%20your%20online%20project%0A-%20your%20planning%0A-%20your%20budget%0A-%20%E2%80%A6%0A%0AAnything%20that%20helps%20us%20to%20start%20straightforward%21)
