diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml new file mode 100644 index 0000000..14f0fbc --- /dev/null +++ b/.github/workflows/dart.yml @@ -0,0 +1,12 @@ +name: Publish to pub.dev + +on: + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+*' + +jobs: + publish: + permissions: + id-token: write + uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 \ No newline at end of file diff --git a/.github/workflows/gitstream.yml b/.github/workflows/gitstream.yml deleted file mode 100644 index bcab7fa..0000000 --- a/.github/workflows/gitstream.yml +++ /dev/null @@ -1,49 +0,0 @@ -# Code generated by gitStream GitHub app - DO NOT EDIT - -name: gitStream workflow automation - -on: - workflow_dispatch: - inputs: - client_payload: - description: The Client payload - required: true - full_repository: - description: the repository name include the owner in `owner/repo_name` format - required: true - head_ref: - description: the head sha - required: true - base_ref: - description: the base ref - required: true - installation_id: - description: the installation id - required: false - resolver_url: - description: the resolver url to pass results to - required: true - resolver_token: - description: Optional resolver token for resolver service - required: false - default: '' - -jobs: - gitStream: - timeout-minutes: 5 - # uncomment this condition, if you dont want any automation on dependabot PRs - # if: github.actor != 'dependabot[bot]' - runs-on: ubuntu-latest - name: gitStream workflow automation - steps: - - name: Evaluate Rules - uses: linear-b/gitstream-github-action@v1 - id: rules-engine - with: - full_repository: ${{ github.event.inputs.full_repository }} - head_ref: ${{ github.event.inputs.head_ref }} - base_ref: ${{ github.event.inputs.base_ref }} - client_payload: ${{ github.event.inputs.client_payload }} - installation_id: ${{ github.event.inputs.installation_id }} - resolver_url: ${{ github.event.inputs.resolver_url }} - resolver_token: ${{ github.event.inputs.resolver_token }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9206384..ca189c9 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -60,7 +60,7 @@ jobs: - name: Commit and push if: inputs.draft != true run: | - git config --global user.email "github-tracker-bot@taplytics.com" + git config --global user.email "foundation-admin@devcycle.com" git config --global user.name "DevCycle Automation" git add . git commit -m "Release ${{steps.prepare-release.outputs.next-release-tag}}" @@ -75,24 +75,10 @@ jobs: - name: Run tests run: flutter test - - name: Create credentials directory - run: mkdir ~/.config/dart - - - name: Setup Pub Credentials - run: | - echo '${{ secrets.DART_PUB_CREDENTIALS_JSON }}' > ~/.config/dart/pub-credentials.json - - - name: Check Publish Warnings - run: flutter pub publish --dry-run - - - name: Publish Package - if: inputs.draft != true - run: flutter pub publish -f - - uses: DevCycleHQ/release-action/create-release@v2.3.0 id: create-release with: - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ secrets.AUTOMATION_USER_TOKEN }} tag: ${{ steps.prepare-release.outputs.next-release-tag }} target: main prerelease: ${{ github.event.inputs.prerelease }}