diff --git a/.github/workflows/create_tag.yaml b/.github/workflows/create_tag.yaml new file mode 100644 index 00000000..55772094 --- /dev/null +++ b/.github/workflows/create_tag.yaml @@ -0,0 +1,25 @@ +name: Automated version bump + +on: + push: + branches: + - main + +jobs: + bump_version: + name: Version bump on main + runs-on: ubuntu-latest + steps: + - name: Checkout source code + uses: actions/checkout@v2 + with: + token: ${{ secrets.IMPAKTFULL_GITHUB_PAT }} + ref: ${{ github.ref }} + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: 18 + - name: Automated version bump + uses: impaktfull/gh_action_dart_conventional_release@main + with: + tag-prefix: 'v' \ No newline at end of file diff --git a/.github/workflows/publish_to_pubdev.yaml b/.github/workflows/publish_to_pubdev.yaml new file mode 100644 index 00000000..94bdee46 --- /dev/null +++ b/.github/workflows/publish_to_pubdev.yaml @@ -0,0 +1,14 @@ +name: Publish to pub.dev + +on: + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+*' + +jobs: + publish: + permissions: + id-token: write # Required for authentication using OIDC + uses: Impaktfull/gh_action_dart_conventional_release/.github/workflows/flutter_release.yml@main + with: + environment: 'pub.dev' \ No newline at end of file