https://github.com/maxmilton/action-create-release
GitHub action to create a new GitHub release in your CI workflow
https://github.com/maxmilton/action-create-release
continuous-delivery continuous-deployment continuous-integration github-actions github-api release release-automation
Last synced: 2 months ago
JSON representation
GitHub action to create a new GitHub release in your CI workflow
- Host: GitHub
- URL: https://github.com/maxmilton/action-create-release
- Owner: maxmilton
- License: mit
- Archived: true
- Created: 2021-06-16T13:09:03.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-06-27T22:43:31.000Z (10 months ago)
- Last Synced: 2025-02-15T10:11:56.592Z (3 months ago)
- Topics: continuous-delivery, continuous-deployment, continuous-integration, github-actions, github-api, release, release-automation
- Language: JavaScript
- Homepage:
- Size: 1.75 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Deprecation notice: Use the GitHub CLI tool instead. It's available on all GitHub-hosted runners.
```diff
- - uses: maxmilton/action-create-release@v0
- with:
- files: |
- chrome-extension.zip
- git-tag: ${{ github.ref }}
- github-token: ${{ secrets.GITHUB_TOKEN }}
+ - run: gh release create "${{ github.ref_name }}" chrome-extension.zip --draft --generate-notes
+ shell: bash
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```---
[](https://github.com/maxmilton/action-create-release/actions)
[](https://codeclimate.com/github/maxmilton/action-create-release)
[](https://github.com/maxmilton/action-create-release/releases)
[](https://github.com/maxmilton/action-create-release/blob/master/LICENSE)# action-create-release
A GitHub action to create a new GitHub release with optional asset files in your CI workflow.
## Usage
> NOTE: The `files` input currently only supports `.zip` files. Only valid relative or absolute paths are allowed and globs are not supported.
`.github/workflows/publish.yml`:
```yml
name: publish
on:
push:
tags: [v*.*.*]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run build
- run: npm run lint
- run: npm run test
- run: cd dist && zip ../chrome-extension.zip *
- uses: maxmilton/action-create-release@v0
with:
files: |
chrome-extension.zip
git-tag: ${{ github.ref }}
github-token: ${{ secrets.GITHUB_TOKEN }}
```Also, see [this repo's `publish.yml` workflow](.github/workflows/publish.yml) for an example.
## Bugs
Please report any bugs you encounter on the [GitHub issue tracker](https://github.com/maxmilton/action-create-release/issues).
## Changelog
See [releases on GitHub](https://github.com/maxmilton/action-create-release/releases).
## License
MIT license. See [LICENSE](https://github.com/maxmilton/action-create-release/blob/master/LICENSE).
---
© 2023 [Max Milton](https://maxmilton.com)