-
Notifications
You must be signed in to change notification settings - Fork 19
41 lines (37 loc) · 1.42 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: "Fetch releases from Anaconda and publish them on GitHub"
on:
workflow_dispatch:
inputs:
version:
description: 'Version to fetch, optional and defaults to latest'
required: false
schedule:
- cron: 0 */6 * * *
jobs:
fetch_release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
- name: Add micromamba to GITHUB_PATH
run: echo "${HOME}/micromamba-bin" >> "$GITHUB_PATH"
- shell: bash -l {0}
id: fetch-release
run: |
python -m pip install packaging
python fetch_release.py ${{ github.event.inputs.version }}
- name: Release
uses: softprops/action-gh-release@v1
if: steps.fetch-release.outputs.MICROMAMBA_NEW_VERSION == 'true'
with:
name: "micromamba ${{ steps.fetch-release.outputs.MICROMAMBA_VERSION }}"
prerelease: ${{ steps.fetch-release.outputs.MICROMAMBA_NEW_PRERELEASE == 'true' }}
make_latest: ${{ steps.fetch-release.outputs.MICROMAMBA_LATEST }}
body: |
Release artifacts for micromamba ${{ steps.fetch-release.outputs.MICROMAMBA_VERSION }}, mirrored from conda-forge.
The full changelog can be found [here](https://github.com/mamba-org/mamba/releases).
tag_name: ${{ steps.fetch-release.outputs.MICROMAMBA_VERSION }}
files: |
releases/*