Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release flow #1

Merged
merged 3 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
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
62 changes: 62 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Release

on:
release:
types: published
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+**'
workflow_call:
inputs:
release-title:
required: true
type: string
description: 'The title of the release'
setup-script:
required: false
type: string
default: null
description: 'Any setup script to run before building the release assets'

jobs:
release:
runs-on: ubuntu-latest

if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout actions
uses: actions/checkout@v4
with:
fetch-tags: true
fetch-depth: 0

- name: Checkout arduino-devops
uses: actions/checkout@v4
with:
repository: Infineon/arduino-devops
ref: release-flow
path: arduino-devops

- name: Build release changelog
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Core setup
if : ${{ inputs.setup-script }} != null
run: |
${{ inputs.setup-script }}

- name: Build release assets
run: |
python arduino-devops/arduino-packager.py

- name: Upload assets
uses: softprops/action-gh-release@v1
with:
name: ${{ inputs.release-title }} ${{ github.ref_name }}
files: |
build/*.zip
build/*.json
body: ${{steps.build_changelog.outputs.changelog}}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Arduino DevOps Tools and Utilities
Loading