Skip to content

Commit

Permalink
chore(ci): create git tag automatically on release
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-aksamentov committed Dec 3, 2021
1 parent 4c9e2c0 commit 7e9636d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/data-curation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,10 @@ jobs:
run: |
set -x
./scripts/upload
- name: create git tag
if: github.ref == 'refs/heads/staging'
run: |
set -x
git tag $(TZ=UTC date "+%Y-%m-%d--%H-%M-%S--%Z")
git push --tags
15 changes: 0 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,21 +172,6 @@ git checkout master
It is often helpful to visualize the correctness of the branch state on every step by using a GUI git client, such as GitKraken, SourceTree, and [others](https://git-scm.com/downloads/guis).
### Creating a git tag
By convention, git tags are created on every release and the name of the tag consist of a date in format `YYYY-MM-DD` (e.g. `2021-11-18`). Updates of the staging branch don't need tags.

Commands to create and push the tag:

```bash
# Create a tag locally
git tag $(date '+%F')
# Push the tags to the remote server
git push --tags
```

### Infrastructure
AWS S3 buckets, AWS Cloudfront distributions, AWS Lambda and domain names are managed internally by Nextstrain AWS admins. Ping them on Slack if you need help.

0 comments on commit 7e9636d

Please sign in to comment.