Skip to content

Commit

Permalink
fix: Don't create a tag and launch manually
Browse files Browse the repository at this point in the history
  • Loading branch information
lsaudon committed Jul 4, 2024
1 parent a75339f commit a9b9b34
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/example_cd.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
name: continuous-delivery

on:
push:
tags:
- 'v*'
workflow_dispatch

env:
FLUTTER_VERSION: 3.22.2

jobs:
continuous-delivery-ios:
runs-on: macos-latest
if: github.ref == 'refs/heads/main'
defaults:
run:
working-directory: example/ios
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ class VersionControlGitAdapter implements VersionControlPort {
await _processManager.run(['git', 'checkout', '-b', branchName]);
await _processManager.run(['git', 'add', 'pubspec.yaml', 'CHANGELOG.md']);
await _processManager.run(['git', 'commit', '-m', 'chore: $versionTag']);
await _processManager.run(['git', 'tag', versionTag]);
await _processManager
.run(['git', 'push', '--atomic', 'origin', branchName, versionTag]);
}
Expand Down
3 changes: 0 additions & 3 deletions test/src/commands/release_command_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,6 @@ void main() {
when(
() => processManager.run(['git', 'commit', '-m', 'chore: $versionTag']),
).thenAnswer((final _) async => ProcessResult(0, 0, '', ''));
when(() => processManager.run(['git', 'tag', versionTag]))
.thenAnswer((final _) async => ProcessResult(0, 0, '', ''));
when(
() => processManager.run(
['git', 'push', '--atomic', 'origin', versionBranch, versionTag],
Expand Down Expand Up @@ -245,7 +243,6 @@ void main() {
['git', 'checkout', '-b', versionBranch],
['git', 'add', 'pubspec.yaml', 'CHANGELOG.md'],
['git', 'commit', '-m', 'chore: $versionTag'],
['git', 'tag', versionTag],
['git', 'push', '--atomic', 'origin', versionBranch, versionTag],
]) {
verify(() => processManager.run(c));
Expand Down

0 comments on commit a9b9b34

Please sign in to comment.