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

new release #81

Merged
merged 8 commits into from
Mar 10, 2025
Merged
Changes from 1 commit
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
Prev Previous commit
diffrent ci for test and release
USAMAWIZARD authored Mar 10, 2025
commit 6ffff4c43f15e308f1951376fde5d7651a02af28
42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Publish Package

on:
push:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
if: contains(github.event.head_commit.message, 'release')

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'

- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'

- name: Setup Pub Credentials
shell: bash
env:
PUB_DEV_PUBLISH_ACCESS_TOKEN: ${{ secrets.PUB_DEV_PUBLISH_ACCESS_TOKEN }}
PUB_DEV_PUBLISH_REFRESH_TOKEN: ${{ secrets.PUB_DEV_PUBLISH_REFRESH_TOKEN }}
PUB_DEV_PUBLISH_TOKEN_ENDPOINT: ${{ secrets.PUB_DEV_PUBLISH_TOKEN_ENDPOINT }}
PUB_DEV_PUBLISH_EXPIRATION: ${{ secrets.PUB_DEV_PUBLISH_EXPIRATION }}
run: |
sh ./pub_login.sh

- name: Check Publish Warnings
run: |
sudo cat /$HOME/.config/dart/pub-credentials.json
flutter pub publish --dry-run

- name: Publish Package
run: |
yes | flutter pub publish
23 changes: 1 addition & 22 deletions .github/workflows/publish.yml → .github/workflows/run_test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

name: Run Test Cases And Publish Package
name: Run Test Cases

on: [pull_request]

@@ -37,24 +37,3 @@ jobs:
script: |
cd example/SampleProject && flutter test integration_test/test_play.dart
cd example/SampleProject && flutter test integration_test/test_conference.dart

# Uncomment and adjust for publishing your package
- name: Setup Pub Credentials
shell: bash
env:
PUB_DEV_PUBLISH_ACCESS_TOKEN: ${{ secrets.PUB_DEV_PUBLISH_ACCESS_TOKEN }}
PUB_DEV_PUBLISH_REFRESH_TOKEN: ${{ secrets.PUB_DEV_PUBLISH_REFRESH_TOKEN }}
PUB_DEV_PUBLISH_TOKEN_ENDPOINT: ${{ secrets.PUB_DEV_PUBLISH_TOKEN_ENDPOINT }}
PUB_DEV_PUBLISH_EXPIRATION: ${{ secrets.PUB_DEV_PUBLISH_EXPIRATION }}
run: |
sh ./pub_login.sh

- name: Check Publish Warnings
run: |
sudo cat /$HOME/.config/dart/pub-credentials.json
flutter pub publish --dry-run

- name: Publish Package
if: contains(github.event.head_commit.message, 'release')
run: |
yes | flutter pub publish