Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 817 Bytes

File metadata and controls

34 lines (29 loc) · 817 Bytes

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