Skip to content

v0.18.0

v0.18.0 #41

Workflow file for this run

name: Helm Package
on:
release:
types: [published]
permissions:
contents: write
jobs:
package:
runs-on: ubuntu-latest
strategy:
matrix:
release:
- 'qiskit-serverless'
steps:
- name: Set up Helm
uses: azure/[email protected] #4.2.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #4.1.7
- name: Build Helm Package
id: package
run: |
helm package ./charts/${{ matrix.release }} -u
echo "VERSION=${GITHUB_REF_NAME/v}" >> $GITHUB_OUTPUT
- name: Upload Helm Package
uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 #4.3.5
with:
name: helm-package
path: ./${{ matrix.release }}-${{ steps.package.outputs.VERSION }}.tgz
- name: Get release
id: get_release
uses: bruceadams/get-release@74c3d60f5a28f358ccf241a00c9021ea16f0569f #1.3.2
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 #1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./${{ matrix.release }}-${{ steps.package.outputs.VERSION }}.tgz
asset_name: ${{ matrix.release }}-${{ steps.package.outputs.VERSION }}.tgz
asset_content_type: application/zip