diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml deleted file mode 100644 index 7edfeef..0000000 --- a/.github/workflows/deploy.yaml +++ /dev/null @@ -1,14 +0,0 @@ -name: Deploy - -on: - workflow_dispatch: - push: - tags: - - "[0-9]+.[0-9]+.[0-9]+*" - -jobs: - deploy: - name: "Deploy to Pub.dev" - permissions: - id-token: write # Required for authentication using OIDC - uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 \ No newline at end of file diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..399aa2c --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,22 @@ +name: Publish to pub.dev + +on: + push: + tags: + - "v[0-9]+.[0-9]+.[0-9]+*" + +jobs: + publish: + permissions: + id-token: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: dart-lang/setup-dart@v1 + - uses: subosito/flutter-action@v2 + with: + channel: "stable" + - name: Install dependencies + run: flutter pub get + - name: Publish + run: dart pub publish --force diff --git a/pubspec.yaml b/pubspec.yaml index 50b9ca9..ddb2451 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: varioqub_configs description: "Flutter plugin providing work with remote configs, experiments and A/B testing via Varioqub" -version: 0.0.3 +version: 0.0.4 repository: https://github.com/meg4cyberc4t/varioqub_configs homepage: https://github.com/meg4cyberc4t/varioqub_configs issue_tracker: https://github.com/meg4cyberc4t/varioqub_configs/issues