bundle-git #3
This file contains 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: bundle-git | |
on: | |
workflow_dispatch: | |
inputs: | |
Git_version: | |
description: > | |
Git version to be bundled | |
type: string | |
required: true | |
default: '2.43.0' | |
jobs: | |
build-distro: | |
name: Bundle Git for Windows | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Run Bundle script | |
run: .\Bundle-Git.ps1 -GitVersion ${{ inputs.Git_version }} | |
shell: pwsh | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ inputs.Git_version }} | |
release_name: Release Git ${{ inputs.Git_version }} | |
draft: false | |
prerelease: false | |
- name: Upload Release Asset | |
id: upload-release-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./idf-git-${{ inputs.Git_version}}-win64.zip | |
asset_name: idf-git-${{ inputs.Git_version }}-win64.zip | |
asset_content_type: application/zip | |
- name: Upload Release Asset To dl.espressif.com | |
id: upload-release-asset-espressif | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }} | |
shell: pwsh | |
run: aws s3 cp --acl=public-read --no-progress ./idf-git-${{ inputs.Git_version }}-win64.zip s3://${{ secrets.DL_BUCKET }}/dl/idf-git/idf-git-${{ inputs.Git_version }}-win64.zip |