-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Add release please and other github actions
- Loading branch information
Showing
11 changed files
with
262 additions
and
23 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: CI - On Main | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
# This job is triggered when a new tag is pushed to the main branch. | ||
jobs: | ||
# This job uses the release-please action to create a release PR. | ||
# See https://github.com/googleapis/release-please | ||
release-please: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: googleapis/release-please-action@v4 | ||
with: | ||
manifest-file: "release-please/.release-please-manifest.json" | ||
config-file: "release-please/release-please-config.json" |
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,9 @@ | ||
name: CI - On Release | ||
on: | ||
push: | ||
tags: | ||
- "*" | ||
# jobs: | ||
## This job is triggered when a new tag is pushed to the repository. | ||
## Typically this would be a release from release-please. | ||
## Here you may want to create a build, publish to a package registry, etc. |
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,57 @@ | ||
name: CI - Pull Request | ||
|
||
on: | ||
pull_request: | ||
# pull_request_target: # Uncomment this line if you are using pull_request_target | ||
|
||
# Pull Request Runs on the same branch will be cancelled | ||
concurrency: | ||
group: ${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
code-quality: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout the repo | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
# Use the flutter-action to set up flutter, and cache dependencies | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
cache: true | ||
|
||
# If you have generated code, you may want to run build_runner to generate the code | ||
# - run: dart run build_runner build --delete-conflicting-outputs | ||
|
||
# Uses the flutter-code-quality action to run code quality checks | ||
# This will return a status check to the pull request | ||
- uses: ZebraDevs/[email protected] | ||
with: | ||
token: ${{secrets.GITHUB_TOKEN}} | ||
|
||
# You may want to add more jobs here, such as building and testing your code. | ||
# The following commented job is an example of deploying a preview version of your app | ||
# deploy-preview: | ||
# name: Deploy preview version of the storybook on firebase | ||
# needs: code-quality | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# with: | ||
# repository: ${{github.event.pull_request.head.repo.full_name}} | ||
# ref: ${{ github.head_ref }} | ||
# - uses: subosito/flutter-action@v2 | ||
# with: | ||
# cache: true | ||
# - name: Setup flutter | ||
# run: flutter pub get | ||
# - name: Build example app | ||
# run: flutter build web | ||
# - uses: FirebaseExtended/action-hosting-deploy@v0 | ||
# with: | ||
# repoToken: "${{ secrets.GITHUB_TOKEN }}" | ||
# firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ZETA_DS }}" | ||
# channelId: "pr-${{ github.event.number }}-${{ github.event.pull_request.head.ref }}" |
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
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
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
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
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
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,3 @@ | ||
{ | ||
".": "0.0.1" | ||
} |
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,62 @@ | ||
{ | ||
"packages": { | ||
".": { | ||
"release-type": "dart" | ||
} | ||
}, | ||
"changelog-sections": [ | ||
{ | ||
"type": "feat", | ||
"section": "✨ New Features" | ||
}, | ||
{ | ||
"type": "fix", | ||
"section": "🪲 Bug Fixes" | ||
}, | ||
{ | ||
"type": "revert", | ||
"section": "👀 Reverts" | ||
}, | ||
{ | ||
"type": "docs", | ||
"section": "📈 Documentation" | ||
}, | ||
{ | ||
"type": "deps", | ||
"section": "⛓️ Dependencies" | ||
}, | ||
{ | ||
"type": "test", | ||
"section": "🧪 Tests" | ||
}, | ||
{ | ||
"type": "chore", | ||
"section": "🧹 Miscellaneous Chores" | ||
}, | ||
{ | ||
"type": "perf", | ||
"section": "Performance Improvements", | ||
"hidden": true | ||
}, | ||
{ | ||
"type": "refactor", | ||
"section": "Code Refactoring", | ||
"hidden": true | ||
}, | ||
{ | ||
"type": "style", | ||
"section": "Styles", | ||
"hidden": true | ||
}, | ||
{ | ||
"type": "build", | ||
"section": "Build System", | ||
"hidden": true | ||
}, | ||
{ | ||
"type": "ci", | ||
"section": "Continuous Integration", | ||
"hidden": true | ||
} | ||
] | ||
} |
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