From 33b7d9068af902d3fa0126306da79e3f907bc581 Mon Sep 17 00:00:00 2001 From: Erik Gomez Date: Fri, 19 Jun 2020 16:46:44 -0500 Subject: [PATCH] add some debugging to see what's going on --- .github/workflows/build_package.yml | 34 +++++++++++++++++------------ 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build_package.yml b/.github/workflows/build_package.yml index e1ad8eb..d80fdd4 100644 --- a/.github/workflows/build_package.yml +++ b/.github/workflows/build_package.yml @@ -22,6 +22,12 @@ jobs: with: format: MMDDYYYYHHmmss + - name: Use current time + env: + DATE: "${{ steps.current-time.outputs.time }}" + F_DATE: "${{ steps.current-time.outputs.formattedTime }}" + run: echo $DATE $F_DATE + - name: Checkout python repo uses: actions/checkout@v2 @@ -34,17 +40,17 @@ jobs: - name: Run build package (recommended pkg) env: - TIME: "${{ steps.current-time.outputs.formattedTime }}" - run: /usr/bin/sudo ./build_python_framework_pkgs.zsh "$TYPE" "$DEV_ID" "$PYTHON_VERSION" "{TIME}" + DATE: "${{ steps.current-time.outputs.formattedTime }}" + run: /usr/bin/sudo ./build_python_framework_pkgs.zsh "$TYPE" "$DEV_ID" "$PYTHON_VERSION" "{DATE}" - name: Create Release - id: create_release uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + DATE: "${{ steps.current-time.outputs.formattedTime }}" with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} + tag_name: ${{ DATE }} + release_name: Python ${{PYTHON_VERSION}} (${{ github.ref }}) draft: true prerelease: true @@ -52,33 +58,33 @@ jobs: uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - TIME: "${{ steps.current-time.outputs.formattedTime }}" + DATE: "${{ steps.current-time.outputs.formattedTime }}" with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./outputs/python_$TYPE-$PYTHON_VERSION.$TIME.pkg - asset_name: python_$TYPE-$PYTHON_VERSION.$TIME.pkg + asset_path: ./outputs/python_$TYPE-$PYTHON_VERSION.$DATE.pkg + asset_name: python_$TYPE-$PYTHON_VERSION.$DATE.pkg asset_content_type: application/x-newton-compatible-pkg - name: Upload Signed Package Release Asset uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - TIME: "${{ steps.current-time.outputs.formattedTime }}" + DATE: "${{ steps.current-time.outputs.formattedTime }}" with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./outputs/python_$TYPE_signed-$PYTHON_VERSION.$TIME.pkg - asset_name: python_$TYPE_signed-$PYTHON_VERSION.$TIME.pkg + asset_path: ./outputs/python_$TYPE_signed-$PYTHON_VERSION.$DATE.pkg + asset_name: python_$TYPE_signed-$PYTHON_VERSION.$DATE.pkg asset_content_type: application/x-newton-compatible-pkg - name: Upload Python Framework Release Asset uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - TIME: "${{ steps.current-time.outputs.formattedTime }}" + DATE: "${{ steps.current-time.outputs.formattedTime }}" with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./outputs/Python3.framework_$TYPE-$PYTHON_VERSION.$TIME.zip - asset_name: Python3.framework_$TYPE-$PYTHON_VERSION.$TIME.zip + asset_path: ./outputs/Python3.framework_$TYPE-$PYTHON_VERSION.$DATE.zip + asset_name: Python3.framework_$TYPE-$PYTHON_VERSION.$DATE.zip asset_content_type: application/zip - name: Upload packages