This repository has been archived on 2022-06-22. You can view files and clone it, but cannot push or open issues or pull requests.
DeepSea/.github/workflows/buildRelease.yml
Workflow config file is invalid. Please check your config file: yaml: line 28: could not find expected ':'
2020-05-15 03:55:31 +02:00

65 lines
2.6 KiB
YAML

name: BuildRelease
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8.2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Create config script
env:
gitPass: ${{ secrets.SLX_GIT_PASS }}
gitToken: ${{ secrets.SLX_GIT_TOKEN }}
gitUser: ${{ secrets.SLX_GIT_USER }}
run: |
echo -e "version = 'v1.0.0'\ngithub_username = '$gitUser'\ng
ithub_password = '$gitPass'\ngitlab_private_access_token = '$gitToken'"> ./builder/config.py
- name: Compile DeepSea Zip
run: |
sudo python ./builder/builder.py deepsea output="./deepsea.zip"
- name: Compile DeepSea-minimal Zip
run: |
sudo python ./builder/builder.py deepsea-mini output="./deepsea-minimal.zip"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: true
prerelease: false
- name: Upload Release Asset - DeepSea
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./builder/deepsea.zip
asset_name: deepsea_v1.0.0.zip
asset_content_type: application/zip
- name: Upload Release Asset - DeepSea-Minimal
id: upload-release-asset2
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./builder/deepsea.zip
asset_name: deepsea_v1.0.0.zip
asset_content_type: application/zip