Skip to content

Commit 564894f

Browse files
authored
Use combination of tag and number of commits since tag (#1197)
This creates a unique version number per commit on master branch Co-authored-by: haasad <haasad@users.noreply.github.com>
1 parent 7438c37 commit 564894f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/main.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ jobs:
109109
PKG_NAME: "activity-browser-dev"
110110
steps:
111111
- uses: actions/checkout@v3
112+
with:
113+
fetch-depth: "0"
112114
- name: Build and deploy 3.11
113115
uses: conda-incubator/setup-miniconda@v2
114116
with:
@@ -117,7 +119,7 @@ jobs:
117119
environment-file: .github/conda-envs/build.yml
118120
- name: Export version
119121
run: |
120-
echo "VERSION=$(date +'%Y.%m.%d')" >> $GITHUB_ENV
122+
echo "VERSION=$(git describe --tags --always | cut -d- -f1,2 | sed 's/-/dev/')" >> $GITHUB_ENV
121123
- name: Patch recipe with run requirements from stable
122124
uses: mikefarah/yq@master
123125
# Adds the run dependencies from the stable recipe to the dev recipe (inplace)
@@ -131,5 +133,5 @@ jobs:
131133
conda build .github/dev-recipe/
132134
- name: Upload the activity-browser-dev package
133135
run: |
134-
anaconda -t ${{ secrets.CONDA_UPLOAD_TOKEN }} upload --force \
136+
anaconda -t ${{ secrets.CONDA_UPLOAD_TOKEN }} upload \
135137
/usr/share/miniconda/envs/build/conda-bld/noarch/*.tar.bz2

0 commit comments

Comments
 (0)