action-create-release

GitHub action to create a new GitHub release in your CI workflow

MIT License

Stars
2
Committers
3

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 }}

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:

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.

Bugs

Please report any bugs you encounter on the GitHub issue tracker.

Changelog

See releases on GitHub.

License

MIT license. See LICENSE.


© 2023 Max Milton

Package Rankings
Top 20.13% on Github actions
Badges
Extracted from project README
Build status Coverage status GitHub release (latest SemVer) Licence