diff --git a/.github/workflows/buildDev.yml b/.github/workflows/buildDev.yml index 79a1ed6..e715fd2 100644 --- a/.github/workflows/buildDev.yml +++ b/.github/workflows/buildDev.yml @@ -12,32 +12,32 @@ defaults: jobs: build: runs-on: ubuntu-latest - + steps: - - uses: actions/checkout@v2 - + - 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 "::set-output name=version::$version" + echo "version=$version" >> $GITHUB_OUTPUT - name: Set up hub run: | sudo apt install hub -y - - - name: Set up Python 3.9 - uses: actions/setup-python@v1 + + - 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: | + run: | python ./start.py -gt="$GITHUB_TOKEN" - name: Create DevRelease @@ -49,4 +49,4 @@ jobs: 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 }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/buildRelease.yml b/.github/workflows/buildRelease.yml index 29afa7b..7b98e3a 100644 --- a/.github/workflows/buildRelease.yml +++ b/.github/workflows/buildRelease.yml @@ -12,34 +12,34 @@ defaults: jobs: build: runs-on: ubuntu-latest - + steps: - - uses: actions/checkout@v2 - + - 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 "::set-output name=version::$version" + echo "version=$version" >> $GITHUB_OUTPUT - name: Set up hub run: | sudo apt install hub -y - - name: Set up Python 3.9 - uses: actions/setup-python@v1 + - 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: | + run: | python ./start.py -gt="$GITHUB_TOKEN" - + - name: Create Release run: | set -x @@ -49,4 +49,4 @@ jobs: 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 }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file