AlirezaTheH / github-auto-publish

GitHub action to automate publish a GitHub release if find an unpublished version in CHANGELOG.md (Keep a Changelog format).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub Auto Publish

GitHub action to automate publish a GitHub release if find an unpublished version in CHANGELOG.md (Keep a Changelog format).

Usage

name: Publish
on:
  push:
    branches:
      - main
  workflow_dispatch:

jobs:
  github-publish:
    runs-on: ubuntu-latest
    steps:
      - uses: alirezatheh/github-auto-publish@v1
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          files: ./dist/*.zip

The action assume:

  • Python and pip are installed (e.g. by actions/setup-python@v3).

Inputs

  • github-token: GitHub token (required).
  • files: Files to be uploaded as release assets (optional).

Acknowledgements

This action is inspired by pypi-auto-publish

About

GitHub action to automate publish a GitHub release if find an unpublished version in CHANGELOG.md (Keep a Changelog format).

License:MIT License


Languages

Language:Python 100.0%