Skip to content

Commit

Permalink
Create a release candidate version.
Browse files Browse the repository at this point in the history
  • Loading branch information
antarcticrainforest committed Jul 31, 2024
1 parent 10f4b44 commit 603e1b7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/build_job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,20 @@ jobs:
echo "repo=$(echo ${{ github.repository }}|tr 'A-Z' 'a-z')" >> $GITHUB_OUTPUT
echo "tag=$(python freva-rest/src/freva_rest/__init__.py)" >> $GITHUB_OUTPUT
-
name: Check if tag is a pre-release
id: check-prerelease
run: |
TAG=${{ steps.repository.outputs.tag }}
if [[ "$TAG" == *"-dev"* || "$TAG" == *"-beta"* || "$TAG" == *"-alpha"* ]]; then
echo "This is a pre-release tag."
echo "IS_PRERELEASE=true" >> $GITHUB_ENV
else
echo "This is not a pre-release tag."
echo "IS_PRERELEASE=false" >> $GITHUB_ENV
fi
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
Expand All @@ -105,7 +119,7 @@ jobs:
push: true
tags: |
ghcr.io/freva-clint/freva-rest-api:${{ steps.repository.outputs.tag }}
ghcr.io/freva-clint/freva-rest-api:latest
${{ if eq(env.IS_PRERELEASE, 'false') }}ghcr.io/freva-clint/freva-rest-api:latest
pypi:
name: Create Pip package
permissions:
Expand Down
2 changes: 1 addition & 1 deletion freva-client/src/freva_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
from .auth import authenticate
from .query import databrowser

__version__ = "2408.0.0"
__version__ = "2408.0.0.dev1"
__all__ = ["authenticate", "databrowser", "__version__"]
2 changes: 1 addition & 1 deletion freva-rest/src/freva_rest/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
from pathlib import Path

__version__ = "2408.0.0"
__version__ = "2408.0.0-dev1"
__all__ = ["__version__"]

REST_URL = (
Expand Down

0 comments on commit 603e1b7

Please sign in to comment.