Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading