Skip to content

Commit a9e5bf4

Browse files
committed
Update workflow files
1 parent cd28906 commit a9e5bf4

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

.github/workflows/tag-and-zip.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,3 +158,35 @@ jobs:
158158
exit 1
159159
fi
160160
output_dir: html
161+
create-release:
162+
needs:
163+
- create-zip
164+
- deploy-docs
165+
name: Create Release and Upload Release Asset
166+
runs-on: ubuntu-20.04
167+
steps:
168+
- name: Create Release
169+
id: create_release
170+
uses: actions/create-release@v1
171+
env:
172+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
173+
with:
174+
tag_name: ${{ github.event.inputs.version_number }}
175+
release_name: ${{ github.event.inputs.version_number }}
176+
body: Release version ${{ github.event.inputs.version_number }} of the AWS IoT Device SDK for Embedded C.
177+
draft: false
178+
prerelease: false
179+
- name: Download ZIP artifact
180+
uses: actions/download-artifact@v4
181+
with:
182+
name: aws-iot-device-sdk-embedded-C-${{ github.event.inputs.version_number }}.zip
183+
- name: Upload Release Asset
184+
id: upload-release-asset
185+
uses: actions/upload-release-asset@v1
186+
env:
187+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
188+
with:
189+
upload_url: ${{ steps.create_release.outputs.upload_url }}
190+
asset_path: ./aws-iot-device-sdk-embedded-C-${{ github.event.inputs.version_number }}.zip
191+
asset_name: aws-iot-device-sdk-embedded-C-${{ github.event.inputs.version_number }}.zip
192+
asset_content_type: application/zip

.github/workflows/upload-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ jobs:
3333
- name: Download ZIP artifact
3434
uses: actions/download-artifact@v4
3535
with:
36-
github-token: ${{secrets.GITHUB_TOKEN}}
36+
github_token: ${{secrets.GITHUB_TOKEN}}
3737
# Required, workflow file name or ID
3838
workflow: ${{ github.event.inputs.workflow_name }}.yml
39-
run-id: ${{ github.event.inputs.workflow_id }}
39+
run_id: ${{ github.event.inputs.workflow_id }}
4040
name: aws-iot-device-sdk-embedded-C-${{ github.event.inputs.version_number }}.zip
4141
- name: Upload Release Asset
4242
id: upload-release-asset

0 commit comments

Comments
 (0)