Upload Assets/Csv/RemoteCsv.csv #673
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
name: Tag Commit Workflow | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
tag-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Git | |
run: | | |
git config --global user.name '9c-liveAsset-ci' | |
git config --global user.email '[email protected]' | |
- name: Fetch all tags | |
run: git fetch --tags | |
- name: Delete existing tag | |
run: | | |
if git rev-parse -q --verify "refs/tags/Release"; then | |
git tag -d Release | |
git push origin :refs/tags/Release | |
fi | |
- name: Tag the commit | |
run: | | |
git tag Release | |
git push origin Release |