This repository was archived by the owner on Mar 31, 2026. It is now read-only.
Replace Creative Commons license with GNU GPL v3 #29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: BuildDev | |
| on: | |
| push: | |
| branches: | |
| - dev | |
| defaults: | |
| run: | |
| working-directory: src | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - id: set-version | |
| run: | | |
| version=$(python -c 'import sys, json; f=open("./settings.json");print(json.loads(f.read())["releaseVersion"])') | |
| echo "version=$version" >> $GITHUB_OUTPUT | |
| - name: Set up hub | |
| run: | | |
| sudo apt install hub -y | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| 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 }} |