-
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.
Moved tag release step out from CI to CD
- Loading branch information
Showing
3 changed files
with
20 additions
and
20 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 |
---|---|---|
|
@@ -96,6 +96,25 @@ jobs: | |
commit_message: Updated README.md and mix.exs to version $(cat version). | ||
|
||
|
||
tag_release: | ||
runs-on: ubuntu-20.04 | ||
needs: update_version | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_ACTIONS_USER }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Tag Release | ||
run: | | ||
git config user.name Lucasbot | ||
git config user.email [email protected] | ||
if git tag releases/$(cat version); then | ||
git push origin releases/$(cat version) -f | ||
else | ||
echo "Version already exists." | ||
fi | ||
publish_package: | ||
runs-on: ubuntu-20.04 | ||
needs: update_version | ||
|
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 |
---|---|---|
|
@@ -125,22 +125,3 @@ jobs: | |
|
||
- name: Publish Coverage | ||
run: mix coveralls.github | ||
|
||
|
||
tag_release: | ||
runs-on: ubuntu-20.04 | ||
needs: coverage | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_ACTIONS_USER }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Tag Release | ||
run: | | ||
git config user.name Lucasbot | ||
git config user.email [email protected] | ||
if git tag releases/$(cat version); then | ||
git push origin releases/$(cat version) -f | ||
else | ||
echo "Version already exists." | ||
fi |
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