build: prefix nightly versions with latest tag (#219)

This commit is contained in:
Daniel Moran
2021-08-02 12:26:14 -04:00
committed by GitHub
parent 4ae87ced37
commit aafdda744d

View File

@ -181,10 +181,12 @@ jobs:
steps: steps:
- run: - run:
name: Make a pseudo-tag for the nightly build name: Make a pseudo-tag for the nightly build
command: git tag nightly-$(date +%Y-%m-%d) command: |
latest_tag=$(git describe --tags --abbrev=0)
git tag ${latest_tag}+nightly.$(date +%Y.%m.%d)
- run: - run:
name: Publish nightly snapshot release name: Publish nightly snapshot release
command: IS_NIGHTLY=1 goreleaser release --rm-dist --skip-validate command: IS_NIGHTLY=1 goreleaser release --rm-dist
- unless: - unless:
condition: << parameters.is-nightly >> condition: << parameters.is-nightly >>
steps: steps: