diff --git a/.github/.cspell/names_dictionary.txt b/.github/.cspell/names_dictionary.txt index ac6fde7..6ef0943 100644 --- a/.github/.cspell/names_dictionary.txt +++ b/.github/.cspell/names_dictionary.txt @@ -15,4 +15,6 @@ josepedromonteiro # github.com/josepedromonteiro stepushchik # github.com/stepushchik-denis-gismart gismart # github.com/stepushchik-denis-gismart aljkor # github.com/aljkor -mgonzalezc # github.com/mgonzalezc \ No newline at end of file +mgonzalezc # github.com/mgonzalezc +subosito # github.com/subosito +bluefireteam # github.com/bluefireteam \ No newline at end of file diff --git a/.github/workflows/release-prepare.yml b/.github/workflows/release-prepare.yml new file mode 100644 index 0000000..d5e9c67 --- /dev/null +++ b/.github/workflows/release-prepare.yml @@ -0,0 +1,28 @@ +name: Prepare release +on: + workflow_dispatch: + inputs: + prerelease: + description: 'Version as prerelease' + required: false + default: false + type: boolean + +jobs: + prepare-release: + name: Prepare release + permissions: + contents: write + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: subosito/flutter-action@v2 + - uses: bluefireteam/melos-action@v3 + with: + run-versioning: ${{ inputs.prerelease == false }} + run-versioning-prerelease: ${{ inputs.prerelease == true }} + publish-dry-run: true + create-pr: true + git-email: github@antonborri.es + git-name: Melos Action \ No newline at end of file diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml new file mode 100644 index 0000000..ae9857a --- /dev/null +++ b/.github/workflows/release-publish.yml @@ -0,0 +1,22 @@ +name: Publish packages +on: + push: + tags: + - 'home_widget-v*' + workflow_dispatch: + +jobs: + publish-packages: + name: Publish packages + permissions: + contents: write + id-token: write + runs-on: [ ubuntu-latest ] + steps: + - uses: actions/checkout@v4 + - uses: subosito/flutter-action@v2 + - uses: bluefireteam/melos-action@v3 + with: + publish: true + git-email: github@antonborri.es + git-name: Melos Action \ No newline at end of file diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml new file mode 100644 index 0000000..e9b13f1 --- /dev/null +++ b/.github/workflows/release-tag.yml @@ -0,0 +1,18 @@ +name: Tag release +on: + push: + branches: [main] + +jobs: + publish-packages: + name: Create tag for a release + permissions: + contents: write + runs-on: [ ubuntu-latest ] + if: contains(github.event.head_commit.message, 'chore(release)') + steps: + - uses: actions/checkout@v4 + - uses: subosito/flutter-action@v2 + - uses: bluefireteam/melos-action@v3 + with: + tag: true \ No newline at end of file