-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add github workflow to publish and issue triage
- Loading branch information
Showing
3 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Add issues to Product Management Project. | ||
|
||
on: | ||
issues: | ||
types: | ||
- opened | ||
|
||
jobs: | ||
add-to-project: | ||
name: Add issue to project | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
# You can target a repository in a different organization | ||
# to the issue | ||
project-url: https://github.com/orgs/famedly/projects/4 | ||
github-token: ${{ secrets.ADD_ISSUE_TO_PROJECT_PAT }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- v[0-9]+.[0-9]+.[0-9]+ | ||
pull_request: | ||
merge_group: | ||
|
||
concurrency: | ||
group: ${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
general: | ||
permissions: | ||
contents: read | ||
uses: famedly/frontend-ci-templates/.github/workflows/general.yml@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Publish to pub.dev | ||
|
||
on: | ||
push: | ||
tags: | ||
- v[0-9]+.[0-9]+.[0-9]+ | ||
|
||
# Publish using the reusable workflow from dart-lang | ||
jobs: | ||
publish: | ||
name: Publish to pub.dev | ||
environment: pub.dev | ||
permissions: | ||
contents: read | ||
id-token: write # This is required for requesting the JWT | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout repository | ||
- uses: actions/checkout@v3 | ||
# Setup Dart SDK with JWT token | ||
- uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa | ||
with: | ||
flutter-version: '3.16.0' | ||
channel: stable | ||
cache: true | ||
# Minimal package setup and dry run checks | ||
- name: Install dependencies | ||
run: flutter pub get | ||
- uses: dart-lang/setup-dart@a57a6c04cf7d4840e88432aad6281d1e125f0d46 | ||
- name: Dry run | ||
run: dart pub publish --dry-run | ||
# Publishing... | ||
- name: Publish to pub.dev | ||
run: dart pub publish -f | ||
|
||
create_release: | ||
runs-on: ubuntu-latest | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Create release | ||
run: | | ||
gh release create ${{ github.ref_name }} |