Skip to content

Commit

Permalink
removed dry-run job in release (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
Subhash703 authored Nov 8, 2024
1 parent 307d027 commit 92b0383
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 18 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@ on:
- synchronize

jobs:
build-on-pr:
runs-on: ubuntu-latest
steps:

- name: Checkout code
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: ${{ github.event.pull_request.commits }}

dry-run:
runs-on: ubuntu-latest
name: Flutter Pub Publish --dry-run
Expand Down
18 changes: 0 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,6 @@ permissions:
contents: write

jobs:
dry-run:
runs-on: ubuntu-latest
name: Flutter Pub Publish --dry-run
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.13.0'

- name: Install dependencies
run: flutter pub get

- name: Run flutter pub publish --dry-run
run: flutter pub publish --dry-run

publish:
if: (github.event.pull_request.merged == true && !contains(github.event.pull_request.title, '[skip ci]')) || github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
Expand Down

0 comments on commit 92b0383

Please sign in to comment.