forked from deepmodeling/dpti
-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (32 loc) · 933 Bytes
/
release_conda_and_github.yml
File metadata and controls
34 lines (32 loc) · 933 Bytes
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
name: release_conda_and_github
on:
workflow_dispatch:
inputs:
comment:
description: 'extra info for this github action'
required: false
default: 'manually triggered'
push:
tags:
- '*'
jobs:
construct-and-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup conda
uses: s-weigand/setup-conda@release
with:
conda-channels: conda-forge, deepmodeling
- run: conda install constructor jinja2 conda-build -c deepmodeling -c conda-forge -y
- run: cd ./conda/dpti/ && conda build . -c deepmodeling -c conda-forge && cd ../../
- run: constructor ./conda/
- name: Upload to release
uses: softprops/action-gh-release@master
with:
files: dpti-*.sh
repository: ${{ env.GITHUB_REPOSITORY }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}