From 53552ccb30e96f56a432de253602ac50565c549a Mon Sep 17 00:00:00 2001 From: gusibi Date: Thu, 4 Jan 2024 23:05:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20test-release.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/flutter_action.yml | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) 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 }}