forked from acts-project/acts
-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (31 loc) · 885 Bytes
/
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
name: Release
on:
workflow_dispatch:
inputs:
tag:
description: 'Tag to create'
required: true
jobs:
release:
runs-on: ubuntu-latest
container: python:3.8-alpine
steps:
- name: Git setup
run: |
apk add git
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- uses: actions/checkout@v2
with:
path: "clone"
- name: Setup
run: |
cp -r clone/CI .
pip install -r CI/requirements.txt
- name: Make release
run: |
export TAG_NAME=${{ github.event.inputs.tag }}
export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
cd clone
../CI/release.py tag $TAG_NAME --yes
../CI/release.py notes $TAG_NAME --yes