diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index 81cc9fc..a4c130f 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -2,7 +2,7 @@ name: 🚀 Publish New version on: push: tags: - - "0.0.0" + - "*" env: JAVA_VERSION: "18.x" @@ -29,10 +29,9 @@ jobs: channel: ${{inputs.flutter_channel}} cache: true - - name: 🔖 Generating new version and change log + - name: Setup Cider run: | flutter pub global activate cider - cider version ${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.PATCH }}+${{ env.NUMBER_OF_COMMITS }} - name: Get changelog id: changelog uses: loopwerk/tag-changelog@v1 @@ -40,9 +39,9 @@ jobs: token: ${{ secrets.GITOKEN }} exclude_types: other,doc,chore - - name: Print tag description + - name: Generating new version and change log run: | - echo ${{ steps.changelog.outputs.changes }} + cider version ${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.PATCH }}+${{ env.NUMBER_OF_COMMITS }} cider log changed "${{ steps.changelog.outputs.changes }}" cider release diff --git a/.github/workflows/create_release2.yml b/.github/workflows/create_release2.yml deleted file mode 100644 index 22c0015..0000000 --- a/.github/workflows/create_release2.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: 🚀 Publish New version -on: - push: - branches: - - main - -env: - JAVA_VERSION: "18.x" - FLUTTER_VERSION: "3.13.0" - FLUTTER_CHANNEL: "stable" - -jobs: - update_code_version: - name: 🚀 Publish New version - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Extract version from tag - uses: damienaicheh/extract-version-from-tag-action@v1.1.0 - - uses: actions/setup-java@v1 - with: - java-version: ${{env.JAVA_VERSION}} - - name: 🔧 Setup Flutter - uses: subosito/flutter-action@v2 - with: - flutter-version: ${{inputs.flutter_version}} - channel: ${{inputs.flutter_channel}} - cache: true - - - name: 🔖 Generating new version and change log - run: | - flutter pub global activate cider - cider version ${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.PATCH }}+${{ env.NUMBER_OF_COMMITS }} - - name: Get changelog - id: changelog - uses: loopwerk/tag-changelog@v1 - with: - token: ${{ secrets.GITOKEN }} - exclude_types: other,doc,chore - - - name: Print tag description - run: | - cider log changed "${{ steps.changelog.outputs.changes }}" - cider release -