Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Use flutter/dart native OIDC #163

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
@@ -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
49 changes: 0 additions & 49 deletions .github/workflows/gitstream.yml

This file was deleted.

18 changes: 2 additions & 16 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}"
Expand All @@ -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/[email protected]
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 }}
Expand Down