Skip to content

Commit

Permalink
Merge pull request #31 from zowe/prepare-2.6.0
Browse files Browse the repository at this point in the history
Make web help releases reproducible
  • Loading branch information
awharn authored Jan 11, 2023
2 parents 14c514c + 1b532c5 commit 573b797
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,15 @@ jobs:
id: release-prepare
if: ${{ steps.release-create.outcome == 'success' }}
run: |
mkdir release
mv zowe.pdf release/.
mv generatedWebHelp release/.
cd release
mv "generatedWebHelp" "zowe-${{ github.event.inputs.zowe-version }}-WebHelp"
mv "zowe.pdf" "zowe-${{ github.event.inputs.zowe-version }}.pdf"
zip -r "zowe-${{ github.event.inputs.zowe-version }}-WebHelp.zip" "zowe-${{ github.event.inputs.zowe-version }}-WebHelp"
TZ=UTC find . -exec touch -t 197001010000.00 {} +
zip -roX "zowe-${{ github.event.inputs.zowe-version }}-WebHelp.zip" "zowe-${{ github.event.inputs.zowe-version }}-WebHelp"
TZ=UTC touch -t 197001010000.00 zowe-${{ github.event.inputs.zowe-version }}-WebHelp.zip
- name: Upload Release Artifacts - PDF
id: release-upload-pdf
Expand All @@ -121,7 +127,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.release-create.outputs.upload_url }}
asset_path: ./zowe-${{ github.event.inputs.zowe-version }}.pdf
asset_path: ./release/zowe-${{ github.event.inputs.zowe-version }}.pdf
asset_name: zowe-${{ github.event.inputs.zowe-version }}.pdf
asset_content_type: application/pdf

Expand All @@ -133,6 +139,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.release-create.outputs.upload_url }}
asset_path: ./zowe-${{ github.event.inputs.zowe-version }}-WebHelp.zip
asset_path: ./release/zowe-${{ github.event.inputs.zowe-version }}-WebHelp.zip
asset_name: zowe-${{ github.event.inputs.zowe-version }}-WebHelp.zip
asset_content_type: application/zip

0 comments on commit 573b797

Please sign in to comment.