Skip to content

jakob-lilliemarck/action-ez-release

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Create a release

Create a GitHub release and optionally append release assets.

This action requires permissions to create releases, either by toggling write access for workflows under repository settings, or by specifying contents: write when calling the action in your workflow.

name: Create a release

on: [push]

jobs:
 main:
    runs-on: ubuntu-latest
    permissions:
      contents: write
    steps:
      - run: |
          echo "foo" > ./foo.txt
          echo "bar" > ./bar.txt
          echo "bax" > ./baz.txt
          ls -R

      - uses: jakob-lilliemarck/action-ez-release@v1
        with:
          tag_name: _test
          release_artifacts: |
            foo.txt
            bar.txt
            baz.txt
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}