Skip to content

Commit d7426c6

Browse files
Release 0.1 (#189)
* Change versioning format * Set version to 0.1 * Add workflow for publishing with label main * Rename test to better name * Rename workflow to align with other names
1 parent b4c9876 commit d7426c6

File tree

6 files changed

+38
-10
lines changed

6 files changed

+38
-10
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Deploy mvesuvio main
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build_conda_and_upload:
9+
runs-on: ubuntu-latest
10+
defaults:
11+
run:
12+
shell: bash -l {0}
13+
14+
steps:
15+
- name: Checkout mvesuvio
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Setup Miniconda
21+
uses: conda-incubator/setup-miniconda@v3
22+
with:
23+
miniforge-version: latest
24+
activate-environment: vesuvio-dev
25+
environment-file: vesuvio-dev.yml
26+
auto-activate-base: false
27+
28+
- name: Publish conda package
29+
uses: ./.github/actions/publish-conda-package
30+
with:
31+
label: main
32+
token: ${{ secrets.ANACONDA_API_TOKEN }}

.github/workflows/deploy_conda_nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Deploy mvesuvio nightly
22

33
on:
44
workflow_run:
5-
workflows: ["mvesuvio nightly build"]
5+
workflows: ["Run tests nightly"]
66
branches: [main]
77
types:
88
- completed

.github/workflows/ci_tests_nightly.yml renamed to .github/workflows/tests_nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: mvesuvio nightly build
1+
name: Run tests nightly
22

33
on:
44
schedule:
File renamed without changes.

pyproject.toml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,21 +67,17 @@ fail_under = 0
6767
show_missing = true
6868
skip_empty = true
6969

70-
[tool.versioningit]
71-
default-version = "0.0.0"
72-
7370
[tool.versioningit.vcs]
7471
method = "git"
75-
default-tag = "0.0.0"
76-
match = ["v*"]
72+
default-tag = "0.0"
7773

7874
[tool.versioningit.next-version]
7975
method = "minor"
8076

8177
[tool.versioningit.format]
8278
distance = "{version}.dev{distance}"
83-
dirty = "{version}.dev{distance}"
84-
distance-dirty = "{version}.dev{distance}"
79+
dirty = "{version}+uncommitted"
80+
distance-dirty = "{version}.dev{distance}+uncommitted"
8581

8682
[tool.versioningit.write]
8783
file = "src/mvesuvio/_version.py"

src/mvesuvio/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.0.0"
1+
__version__ = "0.1"

0 commit comments

Comments
 (0)