Files
publish-immutable-action/README.md
T

32 lines
1.2 KiB
Markdown
Raw Normal View History

2023-11-17 21:31:12 +00:00
# Publish Action Package
2023-11-17 20:04:42 +00:00
2024-07-30 16:36:28 +01:00
> [!IMPORTANT]
> This action is **not ready for public use**. It is part of an upcoming public roadmap item (see [GitHub Actions: Immutable actions publishing](https://github.com/github/roadmap/issues/592)).
> Attempts to use this action to upload an OCI artifact will not work until this feature has been fully released to the public. Please do not attempt to use it until that time.
2024-07-30 15:33:26 +01:00
_This action_ packages _your action_ as an OCI container and publishes it to the [GitHub Container registry](ghcr.io).
2023-11-17 20:04:42 +00:00
2024-07-30 15:33:26 +01:00
This allows your action to be consumed as an _immutable_ package if a [SemVer](https://semver.org/) is specified in the consumer's workflow file.
2023-11-17 20:04:42 +00:00
2024-01-30 16:13:51 +00:00
Your action workflow must be triggered on `release` as in the following example. The release's title must follow [semantic versioning](https://semver.org/).
2024-07-30 16:36:28 +01:00
Consumers of your action will then be able to specify the version, e.g.
* `- uses: your-name/your-action@v1.2.3`
* `- uses: your-name/your-action@v1`
2024-07-30 15:33:26 +01:00
2023-11-17 20:04:42 +00:00
2023-11-17 21:31:12 +00:00
## Usage
2023-11-17 20:04:42 +00:00
<!-- start usage -->
```yaml
on:
release:
2024-07-30 15:33:26 +01:00
- uses: actions/publish-action-package@v1
2023-11-17 20:04:42 +00:00
```
<!-- end usage -->
2023-11-17 21:31:12 +00:00
## License
2023-11-17 20:04:42 +00:00
2024-01-23 15:24:45 -05:00
The scripts and documentation in this project are released under the [MIT License](LICENSE).