Remove dry run for now #3
This file contains hidden or 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
| name: Tag new version | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| tag: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Tag | |
| run: | | |
| sudo git config --global user.name 'Jake' | |
| sudo git config --global user.email 'jakemor@users.noreply.github.com' | |
| sudo git pull | |
| echo "\n\n\n- - - - - VERSION - - - - -\n\n\n" | |
| VERSION=$(grep '^version:' pubspec.yaml | awk '{ print $2 }') | |
| echo $VERSION | |
| echo "\n\n\n- - - - - END VERSION - - - - -\n\n\n" | |
| sudo git tag -a "$VERSION" -m "tags with latest version" | |
| sudo git push --tags || true | |
| sudo git checkout -b "release/$VERSION" | |
| sudo git push -u origin "release/$VERSION" |