mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-02-16 21:24:43 +00:00
Adding second job to handle push actions
This commit is contained in:
70
.github/workflows/docker.yml
vendored
70
.github/workflows/docker.yml
vendored
@@ -35,19 +35,7 @@ jobs:
|
|||||||
Write-Host "Setting build type to Release"
|
Write-Host "Setting build type to Release"
|
||||||
Write-Output "::set-env name=BUILD_TYPE::Release"
|
Write-Output "::set-env name=BUILD_TYPE::Release"
|
||||||
}
|
}
|
||||||
- name: Checkout Builds Repo
|
|
||||||
if: contains('release', env.BUILD_TYPE)
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.BUILDS_TOKEN }}
|
|
||||||
path: ./builds_repo
|
|
||||||
repository: PepperDash/PepperDashCore-Builds
|
|
||||||
- name: Checkout Builds Repo
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.BUILDS_TOKEN }}
|
|
||||||
path: ./internal_builds_repo
|
|
||||||
repository: PepperDash-Engineering/pepperdash-core-builds
|
|
||||||
- name: Fetch tags
|
- name: Fetch tags
|
||||||
run: git fetch --tags
|
run: git fetch --tags
|
||||||
- name: Set Version Number
|
- name: Set Version Number
|
||||||
@@ -70,23 +58,45 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: Build
|
name: Build
|
||||||
path: ./${{ env.SOLUTION_FILE}}-${{ env.VERSION}}.zip
|
path: ./${{ env.SOLUTION_FILE}}-${{ env.VERSION}}.zip
|
||||||
- name: Create Release
|
# - name: Create Release
|
||||||
id: create_release
|
# id: create_release
|
||||||
uses: actions/create-release@v1
|
# uses: actions/create-release@v1
|
||||||
|
# with:
|
||||||
|
# tag_name: v${{ env.VERSION }}
|
||||||
|
# release_name: v${{ env.VERSION }}
|
||||||
|
# prerelease: ${{contains('debug', env.BUILD_TYPE)}}
|
||||||
|
# env:
|
||||||
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# - name: Upload
|
||||||
|
# id: upload_release
|
||||||
|
# uses: actions/upload-release-asset@v1
|
||||||
|
# with:
|
||||||
|
# upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
# asset_path: ./${{ env.SOLUTION_FILE}}-${{ env.VERSION}}.zip
|
||||||
|
# asset_name: ${{ env.SOLUTION_FILE}}-${{ env.VERSION}}.zip
|
||||||
|
# asset_content_type: application/zip
|
||||||
|
# env:
|
||||||
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
push_output:
|
||||||
|
needs: build_project
|
||||||
|
steps:
|
||||||
|
- name: Checkout Public Builds Repo
|
||||||
|
if: contains('master', env.GITHUB_REF) || contains('release', env.GITHUB_REF)
|
||||||
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
tag_name: v${{ env.VERSION }}
|
token: ${{ secrets.BUILDS_TOKEN }}
|
||||||
release_name: v${{ env.VERSION }}
|
path: ./builds_repo
|
||||||
prerelease: ${{contains('debug', env.BUILD_TYPE)}}
|
repository: PepperDash/PepperDashCore-Builds
|
||||||
env:
|
- name: Checkout Internal Builds Repo
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
uses: actions/checkout@v2
|
||||||
- name: Upload
|
|
||||||
id: upload_release
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
token: ${{ secrets.BUILDS_TOKEN }}
|
||||||
asset_path: ./${{ env.SOLUTION_FILE}}-${{ env.VERSION}}.zip
|
path: ./internal_builds_repo
|
||||||
asset_name: ${{ env.SOLUTION_FILE}}-${{ env.VERSION}}.zip
|
repository: PepperDash-Engineering/pepperdash-core-builds
|
||||||
asset_content_type: application/zip
|
- name: Download Artifact
|
||||||
env:
|
uses: action/download-artifact@v1
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
with:
|
||||||
|
name: Build
|
||||||
|
- name: Check Directory
|
||||||
|
run: Get-ChildItem ${{env.GITHUB_WORKSPACE}}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user