-
Notifications
You must be signed in to change notification settings - Fork 8
33 lines (30 loc) · 1 KB
/
github_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: github-release
on: [push]
jobs:
release-if-tagged-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️Ivy Gym
uses: actions/checkout@v2
with:
path: ivy_gym
persist-credentials: false
- name: Install Dependencies
run: |
sudo apt-get install python3-venv
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build
python3 -m pip install --upgrade twine
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Release on Github
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: actions/create-release@v1
with:
draft: false
prerelease: false
release_name: Ivy Gym ${{ steps.get_version.outputs.VERSION }}
tag_name: ${{ steps.get_version.outputs.VERSION }}
env:
GITHUB_TOKEN: ${{ github.token }}