Skip to content

Merge pull request #130 from Team-Neptune/dev #121

Merge pull request #130 from Team-Neptune/dev

Merge pull request #130 from Team-Neptune/dev #121

Workflow file for this run

name: BuildRelease
on:
push:
branches:
- master
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 hub
run: |
sudo apt install hub -y
- 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 Release
run: |
set -x
assets=()
for asset in ./*.zip; do
assets+=("-a" "$asset")
done
hub release create "${assets[@]}" -d -m "Release v${{ steps.set-version.outputs.version }}" "v${{ steps.set-version.outputs.version }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}