From 65444430c47afe28c1892436e266b4f192433e1e Mon Sep 17 00:00:00 2001 From: Ahmad Husen Date: Sat, 2 Oct 2021 00:09:27 +0700 Subject: [PATCH] chore: release v1.1.0 --- .github/workflows/main.yml | 32 ++++++++++++++++++++++++ CHANGELOG.md | 50 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 CHANGELOG.md diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8a1cc0d..3053de7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -116,3 +116,35 @@ jobs: ls -la git diff PKGBUILD git diff .SRCINFO + + release: + name: Release + runs-on: ubuntu-latest + needs: test + if: startsWith(github.ref, 'refs/tags/v') + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Get branch/tag names + id: branch-name + uses: tj-actions/branch-names@v5 + with: + strip_tag_prefix: "v" + + - name: Read changelog + id: changelog-reader + uses: mindsers/changelog-reader-action@v2 + with: + version: ${{ steps.branch-name.outputs.tag }} + path: ./CHANGELOG.md + + - name: Create/update release + uses: ncipollo/release-action@v1 + with: + tag: v${{ steps.branch-name.outputs.tag }} + name: v${{ steps.branch-name.outputs.tag }} + body: ${{ steps.changelog-reader.outputs.changes }} + allowUpdates: true + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..27150be --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,50 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +## [1.1.0] - 2021-10-02 + +### Added + +- Update `pkgver` on PKGBUILD +- Update `pkgrel` on PKGBUILD + +### Fixed + +- Missing `set -e` on bash + +## [1.0.3] - 2021-05-30 + +### Fixed + +- $GITHUB_WORKSPACE permission in step after using this action + +## [1.0.2] - 2021-05-26 + +### Fixed + +- Docker runner syntax +- Path sntax + +## [1.0.1] - 2021-05-19 + +### Fixed + +- Missing documentation + +## [1.0.0] - 2021-05-19 + +### Added + +- Initial release + +[Unreleased]: https://github.com/datakrama/archlinux-package-action/compare/v1.1.0...HEAD +[1.0.3]: https://github.com/datakrama/archlinux-package-action/compare/v1.0.2...v1.0.3 +[1.0.2]: https://github.com/datakrama/archlinux-package-action/compare/v1.0.1...v1.0.2 +[1.0.1]: https://github.com/datakrama/archlinux-package-action/compare/v1.0.0...v1.0.1 +[1.0.0]: https://github.com/datakrama/archlinux-package-action/releases/tag/v1.0.0