-
-
Notifications
You must be signed in to change notification settings - Fork 85
48 lines (39 loc) · 1.16 KB
/
buildDev.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: BuildDev
on:
push:
branches:
- dev
defaults:
run:
working-directory: src
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: set-version
run: |
version=$(python -c 'import sys, json; f=open("./settings.json");print(json.loads(f.read())["releaseVersion"])')
echo "::set-output name=version::$version"
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install dependencies
run: |
if [ -f ../requirements.txt ]; then pip3 install -r ../requirements.txt; fi
- name: Create DeepSea Packages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python ./start.py -gt="$GITHUB_TOKEN"
- name: Create DevRelease
run: |
set -x
assets=()
for asset in ./*.zip; do
assets+=("-a" "$asset")
done
hub release create "${assets[@]}" -d -m "DevRelease v${{ steps.set-version.outputs.version }}" "v${{ steps.set-version.outputs.version }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}