diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 00000000000..1991dd4fc37 --- /dev/null +++ b/.github/workflows/changelog.yml @@ -0,0 +1,48 @@ +name: Create Release + +on: + push: + # Sequence of patterns matched against refs/tags + tags: + - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 + +jobs: + build: + name: Create Release + runs-on: ubuntu-latest + steps: + - name: Get version from tag + id: tag_name + run: | + echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v} + shell: bash + + - name: Checkout code + uses: actions/checkout@v2 + + - name: Create Changelog + uses: heinrichreimer/github-changelog-generator-action@v2.1.1 + with: + output: ./CHANGELOG.md + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Get Changelog Entry + id: changelog_reader + uses: mindsers/changelog-reader-action@v2 + with: + version: ${{ steps.tag_name.outputs.current_version }} + path: ./CHANGELOG.md + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + # This pulls from the "Get Changelog Entry" step above, referencing it's ID to get its outputs object. + # See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps + tag_name: ${{ steps.changelog_reader.outputs.version }} + release_name: Release ${{ steps.changelog_reader.outputs.version }} + body: ${{ steps.changelog_reader.outputs.changes }} + prerelease: ${{ steps.changelog_reader.outputs.status == 'prereleased' }} + draft: ${{ steps.changelog_reader.outputs.status == 'unreleased' }} diff --git a/.github/workflows/version-update.yml b/.github/workflows/version-update.yml index ba037ec0999..d93a9bf5e50 100644 --- a/.github/workflows/version-update.yml +++ b/.github/workflows/version-update.yml @@ -22,7 +22,7 @@ jobs: - name: Commit update uses: stefanzweifel/git-auto-commit-action@v4 with: - branch: main + branch: master skip_dirty_check: true commit_message: 'Update VERSION' commit_options: '--no-verify --signoff' diff --git a/version.txt b/version.txt index 70596c7ed99..9e2af462bfd 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -VERSION = "v1.0" +VERSION = "v1.2" \ No newline at end of file