-
Notifications
You must be signed in to change notification settings - Fork 9
36 lines (34 loc) · 974 Bytes
/
release.yaml
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
name: Create release
on:
workflow_dispatch:
inputs:
version:
description: 'Version number (optional)'
required: false
default: ''
run_id:
description: 'GitHub Actions Run ID (optional)'
required: false
default: ''
jobs:
create-release:
if: github.repository == 'DIRACGrid/DIRACOS2'
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- name: Prepare environment
uses: conda-incubator/setup-miniconda@v2
with:
environment-file: scripts/environment.yml
miniforge-variant: Mambaforge
use-mamba: true
- name: Create release
run: |
scripts/make_release.py \
--token="${{ secrets.GITHUB_TOKEN }}" \
--run-id="${{ github.event.inputs.run_id }}" \
--version="${{ github.event.inputs.version }}" \
--make-release