-
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
7 changed files
with
118 additions
and
14 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,22 @@ | ||
name: "All the sdk specific jobs" | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
pub-dev-dry-run: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout repository | ||
- uses: actions/checkout@v4 | ||
# Setup Dart SDK with JWT token | ||
- uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa | ||
with: | ||
flutter-version: ${{ env.flutter_version }} | ||
channel: stable | ||
cache: true | ||
# Minimal package setup and dry run checks. | ||
- name: Install dependencies | ||
run: flutter pub get | ||
- name: Dry run | ||
run: flutter pub publish --dry-run |
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,31 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
merge_group: | ||
|
||
concurrency: | ||
group: ${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
dart: | ||
permissions: | ||
contents: read | ||
uses: famedly/frontend-ci-templates/.github/workflows/dart.yml@main | ||
with: | ||
env_file: ".github/workflows/versions.env" | ||
|
||
general: | ||
permissions: | ||
contents: read | ||
uses: famedly/frontend-ci-templates/.github/workflows/general.yml@main | ||
|
||
app_jobs: | ||
secrets: inherit | ||
uses: ./.github/workflows/app.yaml | ||
|
||
|
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@v4 | ||
# Setup Dart SDK with JWT token | ||
- uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa | ||
with: | ||
flutter-version: ${{ env.flutter_version }} | ||
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@v4 | ||
- name: Create release | ||
run: | | ||
gh release create ${{ github.ref_name }} |
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,2 @@ | ||
flutter_version=3.16.9 | ||
dart_version=3.2.6 |
This file was deleted.
Oops, something went wrong.
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