Skip to content

Commit

Permalink
Update the Release Automation workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DakshitBabbar committed Dec 16, 2024
1 parent 530884a commit 6878076
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 52 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tag, Deploy Docs, and Create ZIP
name: Release Automation

on:
workflow_dispatch:
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
env:
VERSION_NUMBER: ${{ github.event.inputs.version_number }}
run: |
zip -r aws-iot-device-sdk-embedded-C-$"VERSION_NUMBER".zip aws-iot-device-sdk-embedded-C -x "*.git*"
zip -r aws-iot-device-sdk-embedded-C-"$VERSION_NUMBER".zip aws-iot-device-sdk-embedded-C -x "*.git*"
ls ./
- name: Validate created ZIP
env:
Expand Down Expand Up @@ -158,3 +158,35 @@ jobs:
exit 1
fi
output_dir: html
create-release:
needs:
- create-zip
- deploy-docs
name: Create Release and Upload Release Asset
runs-on: ubuntu-20.04
steps:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.event.inputs.version_number }}
release_name: ${{ github.event.inputs.version_number }}
body: Release version ${{ github.event.inputs.version_number }} of the AWS IoT Device SDK for Embedded C.
draft: false
prerelease: false
- name: Download ZIP artifact
uses: actions/download-artifact@v4
with:
name: aws-iot-device-sdk-embedded-C-${{ github.event.inputs.version_number }}.zip
- 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: ./aws-iot-device-sdk-embedded-C-${{ github.event.inputs.version_number }}.zip
asset_name: aws-iot-device-sdk-embedded-C-${{ github.event.inputs.version_number }}.zip
asset_content_type: application/zip
50 changes: 0 additions & 50 deletions .github/workflows/upload-release.yml

This file was deleted.

0 comments on commit 6878076

Please sign in to comment.