Skip to content

Commit

Permalink
Create a workflow for the release (#6)
Browse files Browse the repository at this point in the history
Co-authored-by: mbertin <[email protected]>
  • Loading branch information
nitreb and mbertin authored Mar 25, 2024
1 parent f3d9cbe commit b92784c
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release

on:
workflow_dispatch:
inputs:
version:
description: 'Semantic version for the release (vX.Y.Z)'
required: true
type: string

jobs:
release:
runs-on: self-hosted

steps:
- name: Check out code
uses: actions/checkout@v4

- uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: '1.5.6-0'
micromamba-binary-path: ${{ runner.temp }}/bin/micromamba
environment-file: conda_environment.yaml
environment-name: copernicusmarine
condarc-file: .condarc
cache-environment: true
post-cleanup: 'all'

- name: Run tests
env:
VERSION: ${{ inputs.version }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
DOCKER_HUB_PUSH_TOKEN: ${{ secrets.DOCKER_HUB_PUSH_TOKEN }}
run: make release
shell: micromamba-shell {0}

0 comments on commit b92784c

Please sign in to comment.