Skip to content

Commit

Permalink
back to single workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
francovaro committed Feb 2, 2024
1 parent 13876f1 commit 509dfd2
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 38 deletions.
42 changes: 37 additions & 5 deletions .github/workflows/pack.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
name: Create pack
name: Build pack
on:
release:
types: [created]
workflow_dispatch:
pull_request:
push:
tags:
- '*'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
release:
pack:
name: Generate pack
runs-on: ubuntu-22.04
steps:
Expand All @@ -20,9 +23,38 @@ jobs:
run: |
git fetch --tags --force
- uses: Open-CMSIS-Pack/gen-pack-action@main
- name: Create Release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Build pack
id: build_cmsis_pack
uses: Open-CMSIS-Pack/gen-pack-action@main
with:
doxygen-version: 1.9.6
packchk-version: 1.3.98
gen-pack-script: ./gen_pack.sh
gen-pack-output: ./output

- uses: actions/download-artifact@v4
id: download-artifact
with:
name: artifact.zip

- name: Upload release asset
id: upload-release-asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{steps.download-artifact.outputs.download-path}}
asset_name: artifact.zip
asset_content_type: application/zip
33 changes: 0 additions & 33 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit 509dfd2

Please sign in to comment.