Skip to content

APK VS Code Plugin Release v1.2.3 #4

APK VS Code Plugin Release v1.2.3

APK VS Code Plugin Release v1.2.3 #4

Workflow file for this run

name: Helm Package and Publish
on:
release:
types: [created]
env:
GH_TOKEN: ${{ secrets.APK_BOT_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout apk-repo
uses: actions/checkout@v3
with:
fetch-depth: "0"
path: apk-repo
token: ${{ secrets.APK_BOT_TOKEN }}
- name: Set release username and email
shell: sh
run: |
git config --global user.name ${{ secrets.APK_BOT_USER }}
git config --global user.email ${{ secrets.APK_BOT_EMAIL }}
- name: Setup Helm
uses: HelmRepo/helm-setup@v1
- name: Package Chart
run: |
cd apk-repo/helm-charts
helm package .
mv *.tgz ${{github.workspace}}/chart.tgz
- name: Create Release
id: create_release
uses: actions/create-release@v1
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Release of version ${{ github.ref }}.
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{github.workspace}}/chart.tgz
asset_name: chart.tgz
asset_content_type: application/x-gzip