Skip to content

Commit

Permalink
Merge pull request #27 from Flagsmith/feature/clean-up-CI-add-tokens
Browse files Browse the repository at this point in the history
Feature/clean up ci add tokens
  • Loading branch information
jackforesightmobile authored Apr 4, 2022
2 parents 6f8764e + 4c1c699 commit 2e9f534
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 40 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ jobs:
- name: '>> Dart package <<'
uses: k-paxian/dart-package-publisher@master
with:
accessToken: ${{ secrets.PUBDEV_ACCESSTOKEN }}
refreshToken: ${{ secrets.PUBDEV_REFRESHTOKEN }}
accessToken: ${{ secrets.OAUTH_ACCESS_TOKEN }}
refreshToken: ${{ secrets.OAUTH_REFRESH_TOKEN }}
dryRunOnly: true
27 changes: 0 additions & 27 deletions .github/workflows/main.yml

This file was deleted.

28 changes: 18 additions & 10 deletions .github/workflows/publish_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,23 @@ jobs:

publishing:
runs-on: ubuntu-latest
name: Dart Publish Package Test

container:
image: google/dart:latest
name: Dart Publish Package
needs: analyze
steps:
- name: 'Checkout'
uses: actions/checkout@v2 # required!

- name: '>> Dart package <<'
uses: k-paxian/dart-package-publisher@master
with:
accessToken: ${{ secrets.PUBDEV_ACCESSTOKEN }}
refreshToken: ${{ secrets.PUBDEV_REFRESHTOKEN }}
- uses: actions/checkout@v1
- name: Setup credentials
run: |
mkdir -p ~/.pub-cache
cat <<EOF > ~/.pub-cache/credentials.json
{
"accessToken":"${{ secrets.OAUTH_ACCESS_TOKEN }}",
"refreshToken":"${{ secrets.OAUTH_REFRESH_TOKEN }}",
"tokenEndpoint":"https://accounts.google.com/o/oauth2/token",
"scopes": [ "openid", "https://www.googleapis.com/auth/userinfo.email" ],
"expiration": 1649072931936
}
EOF
- name: Publish package
run: pub publish -f
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ packages:
name: dio
url: "https://pub.dartlang.org"
source: hosted
version: "4.0.0"
version: "4.0.6"
encrypt:
dependency: transitive
description:
Expand Down

0 comments on commit 2e9f534

Please sign in to comment.