-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (42 loc) · 1.16 KB
/
shell-ci.yml
File metadata and controls
44 lines (42 loc) · 1.16 KB
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
42
43
44
name: shell CI
on:
push:
branches:
- master
jobs:
create-gh-release:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./drivers/aws_shell
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
sudo apt-get -y install jq
python -m pip install pip -U
pip install tox yq
- name: Pack
run: tox -e pack
- name: Set envs
run: |
version="$(yq -r .metadata.template_version shell-definition.yaml)"
repo_owner=${{ github.repository }}
index=`expr index "$repo_owner" /`
repo=${repo_owner:index}
echo "TAG=$version" >> $GITHUB_ENV
echo "REPO=$repo" >> $GITHUB_ENV
- name: Create GitHub release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: "dist/*"
draft: true
name: ${{ env.REPO }} ${{ env.TAG }}
tag: ${{ env.TAG }}
commit: master