Skip to content

Commit

Permalink
try getting asset upload.
Browse files Browse the repository at this point in the history
  • Loading branch information
gagelarsen committed Sep 23, 2020
1 parent 1123fcf commit 9534815
Showing 1 changed file with 76 additions and 4 deletions.
80 changes: 76 additions & 4 deletions .github/workflows/XmsCore-CI.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Main-CI
name: XmsCore-4.0

on: [push, pull_request]

Expand Down Expand Up @@ -30,8 +30,7 @@ jobs:
- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 flake8-docstrings flake8-bugbear flake8-import-order pep8-naming flake8-colors
flake8 --exclude .tox,.git,__pycache__,_package/tests/files/*,pydocs/source/conf.py,build,dist,tests/fixtures/*,*.pyc,*.egg-info,.cache,.eggs --ignore=D200,D212 --max-line-length=120 --docstring-convention google --isolated --import-order-style=appnexus --application-import-names=xms.core --application-package-names=xms --count --statistics _package
pip install flake8 flake8-docstrings flake8-bugbear flake8-import-order pep8-naming
# Flake Code
- name: Run Flake
run: |
Expand Down Expand Up @@ -121,7 +120,30 @@ jobs:
# Build the Conan Package
- name: Build the Conan Packages
run: python build.py

# Zip Built Conan Packages
- name: Zip Conan Packages
uses: montudor/action-zip@v0.1.0
with:
args: zip -qq -r ${{ matrix.platform }}-Clang${{ matrix.compiler-version }}-${{ matrix.build_type }}.zip ${{ env.CONAN_PATH }}/${{ env.PACKAGE_NAME }}
if: startsWith(github.ref, 'refs/tags/')
# Get the Release Data
- name: Get Release
id: git_release
uses: bruceadams/get-release@v1.2.1
env:
- GITHUB_TOKEN: ${{ AQUAVEO_GITHUB_TOKEN }}
if: startsWith(github.ref, 'refs/tags/')
# Upload Zipped Conan Pacakges
- name: Upload Zipped Conan Packages
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.AQUAVEO_GITHUB_TOKEN }}
with:
upload_url: ${{ steps.git_release.outpts.upload_url }}
asset_path: ./${{ matrix.platform }}-Clang${{ matrix.compiler-version }}-${{ matrix.build_type }}.zip
asset_name: ${{ matrix.platform }}-Clang${{ matrix.compiler-version }}-${{ matrix.build_type }}.zip
asset_content_type: application/zip
if: startsWith(github.ref, 'refs/tags/')

# ----------------------------------------------------------------------------------------------
# LINUX
Expand Down Expand Up @@ -210,6 +232,31 @@ jobs:
- name: Build the Conan Packages
run: python build.py

# Zip Built Conan Packages
- name: Zip Conan Packages
uses: montudor/action-zip@v0.1.0
with:
args: zip -qq -r ${{ matrix.platform }}-GCC{{ matrix.compiler-version }}-${{ matrix.build_type }}.zip ${{ env.CONAN_PATH }}/${{ env.PACKAGE_NAME }}
if: startsWith(github.ref, 'refs/tags/')
# Get the Release Data
- name: Get Release
id: git_release
uses: bruceadams/get-release@v1.2.1
env:
- GITHUB_TOKEN: ${{ AQUAVEO_GITHUB_TOKEN }}
if: startsWith(github.ref, 'refs/tags/')
# Upload Zipped Conan Pacakges
- name: Upload Zipped Conan Packages
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.AQUAVEO_GITHUB_TOKEN }}
with:
upload_url: ${{ steps.git_release.outpts.upload_url }}
asset_path: ./${{ matrix.platform }}-GCC{{ matrix.compiler-version }}-${{ matrix.build_type }}.zip
asset_name: ${{ matrix.platform }}-GCC{{ matrix.compiler-version }}-${{ matrix.build_type }}.zip
asset_content_type: application/zip
if: startsWith(github.ref, 'refs/tags/')

# ----------------------------------------------------------------------------------------------
# WINDOWS
# ----------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -297,3 +344,28 @@ jobs:
- name: Build the Conan Packages
run: python build.py
shell: cmd

# Zip Built Conan Packages
- name: Zip Conan Packages
uses: montudor/action-zip@v0.1.0
with:
args: zip -qq -r ${{ matrix.platform }}-VS{{ matrix.compiler-version }}-${{ matrix.build_type }}.zip ${{ env.CONAN_PATH }}/${{ env.PACKAGE_NAME }}
if: startsWith(github.ref, 'refs/tags/')
# Get the Release Data
- name: Get Release
id: git_release
uses: bruceadams/get-release@v1.2.1
env:
- GITHUB_TOKEN: ${{ AQUAVEO_GITHUB_TOKEN }}
if: startsWith(github.ref, 'refs/tags/')
# Upload Zipped Conan Pacakges
- name: Upload Zipped Conan Packages
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.AQUAVEO_GITHUB_TOKEN }}
with:
upload_url: ${{ steps.git_release.outpts.upload_url }}
asset_path: ./${{ matrix.platform }}-VS{{ matrix.compiler-version }}-${{ matrix.build_type }}.zip
asset_name: ${{ matrix.platform }}-VS{{ matrix.compiler-version }}-${{ matrix.build_type }}.zip
asset_content_type: application/zip
if: startsWith(github.ref, 'refs/tags/')

0 comments on commit 9534815

Please sign in to comment.