diff --git a/.github/workflows/flutter_action.yml b/.github/workflows/flutter_action.yml index 8efce39..98cd3ee 100644 --- a/.github/workflows/flutter_action.yml +++ b/.github/workflows/flutter_action.yml @@ -1,8 +1,19 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. +name: Release -- name: Flutter action - uses: subosito/flutter-action@v2.12.0 - +on: + push: + tags: + - 'v*' + +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Get version + id: get_version + run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} + - name: Print version + run: echo ${{ steps.get_version.outputs.VERSION }}