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

ci: add auto-release #758

Merged
merged 1 commit into from
May 30, 2022
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
29 changes: 29 additions & 0 deletions .github/workflows/release-automated.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: release-automated
on:
release:
types: [created]
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Publish dart package
if: ${{ startsWith(github.ref_name, 'dart') }}
uses: k-paxian/[email protected]
with:
accessToken: ${{ secrets.PUBDEV_GOOGLE_ACCOUNT_ACCESS_TOKEN }}
refreshToken: ${{ secrets.PUBDEV_GOOGLE_ACCOUNT_REFRESH_TOKEN }}
relativePath: packages/dart
format: true
dryRunOnly: false
- name: Publish flutter package
if: ${{ startsWith(github.ref_name, 'flutter') }}
uses: k-paxian/[email protected]
with:
accessToken: ${{ secrets.PUBDEV_GOOGLE_ACCOUNT_ACCESS_TOKEN }}
refreshToken: ${{ secrets.PUBDEV_GOOGLE_ACCOUNT_REFRESH_TOKEN }}
relativePath: packages/flutter
flutter: true
format: true
dryRunOnly: false
4 changes: 3 additions & 1 deletion .github/workflows/release-manual.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Trigger this workflow to manually create a release of the flutter package.
# Trigger this workflow only to manually create a dart/flutter release; this should only be used
# in extraordinary circumstances, as dart/flutter releases are normally created automatically as
# part of the automated release workflow.

name: release-manual
on:
Expand Down