build: bump softprops/action-gh-release from 2.4.2 to 2.5.0 #570
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Artifacts | |
| on: | |
| release: | |
| types: [ published ] | |
| workflow_dispatch: | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| release: | |
| name: Generate Accelerator Release Artifacts | |
| permissions: | |
| contents: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Zip and Tar | |
| run: | | |
| mkdir staging | |
| cp -r accelerator staging | |
| cp -r infra-as-code staging | |
| cd staging | |
| tar -cvzf ../accelerator.tar.gz . | |
| zip -r ../accelerator.zip . | |
| - name: Upload Artifacts to Action | |
| uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 | |
| with: | |
| name: accelerator | |
| path: | | |
| accelerator.tar.gz | |
| accelerator.zip | |
| - name: Add Artifacts to Release | |
| uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| files: | | |
| ./accelerator.tar.gz | |
| ./accelerator.zip |