From 5b827c7d59028060193dd74a2d62a0749e03535a Mon Sep 17 00:00:00 2001 From: ricardodalarme Date: Wed, 21 Jun 2023 13:30:19 -0300 Subject: [PATCH] chore(ci): add a workflow to automatically release new versions Closes #20 --- .github/workflows/auto-release.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/auto-release.yml diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml new file mode 100644 index 00000000..147c1dc7 --- /dev/null +++ b/.github/workflows/auto-release.yml @@ -0,0 +1,26 @@ +name: Auto Release + +on: + workflow_run: + workflows: [CI Android Enhanced Video Player] + types: + - completed + branches: + - main + +jobs: + auto-tag: + if: ${{ github.event.workflow_run.conclusion == 'success' }} + + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - uses: actions/checkout@v3 + - uses: profusion/action-autorelease@main + with: + properties_path: 'gradle.properties' + property_name: 'VERSION_NAME' + tag_prefix: 'v' + github_token: ${{ secrets.GITHUB_TOKEN }}