Skip to content

Commit

Permalink
ci: Add artifact upload and release WF
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugoch committed Feb 7, 2025
1 parent 48f84d8 commit 9fdddda
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ jobs:
if: ${{ github.event_name != 'pull_request' }}
uses: actions/upload-artifact@v4
with:
name: inference-benchmarker
name: inference-benchmarker_x86_64
path: ${{ github.workspace }}/inference-benchmarker

46 changes: 46 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Create Github release

permissions:
contents: write
issues: write
pull-requests: write
packages: write

on:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-build
cancel-in-progress: true
jobs:
build:
permissions:
packages: write
contents: read
name: Build and push docker image
uses: ./.github/workflows/build.yaml

release:
name: Create Github release
runs-on:
group: cpu-low
outputs:
tag: ${{ steps.release.outputs.tag }}
version: ${{ steps.release.outputs.version }}
released: ${{ steps.release.outputs.released }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Download release assets
uses: actions/download-artifact@v4
with:
path: {{ github.workspace }}/dist

- name: Release
id: release
uses: huggingface/semver-release-action@19aa026e54ea22bd69f375f8debad1bb58cf2017
with:
githubPluginOpts: "{\"assets\": [\"dist/*\"]}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 9fdddda

Please sign in to comment.