Deprecation notice: Use the GitHub CLI tool instead. It's available on all GitHub-hosted runners.
- - 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 }}
A GitHub action to create a new GitHub release with optional asset files in your CI workflow.
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
:
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 for an example.
Please report any bugs you encounter on the GitHub issue tracker.
See releases on GitHub.
MIT license. See LICENSE.
© 2023 Max Milton