-
Notifications
You must be signed in to change notification settings - Fork 21
55 lines (48 loc) · 1.74 KB
/
bundle-git.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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