From 94d31d823c968675cb3c788eb0f3f82d31206c74 Mon Sep 17 00:00:00 2001 From: Sergey Golovin Date: Sat, 11 Apr 2020 15:43:37 +0300 Subject: [PATCH] Create changelog.yml --- .github/workflows/changelog.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/changelog.yml diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 0000000..07f7925 --- /dev/null +++ b/.github/workflows/changelog.yml @@ -0,0 +1,25 @@ +name: changelog + +on: + push: + tags: + - 'v*' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout branch + uses: actions/checkout@v1 + - name: Use Node.js 10 + uses: actions/setup-node@v1 + - name: Install github-release-notes and generate changelog + run: | + npx github-release-notes changelog --generate --override --token=${{ secrets.GITHUB_TOKEN }} --changelog-filename=TEMP_CHANGELOG.md + env: + CI: true + - name: Create and publish realese + uses: ncipollo/release-action@v1 + with: + bodyFile: 'TEMP_CHANGELOG.md' + token: ${{ secrets.GITHUB_TOKEN }}