mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-14 13:41:46 +00:00
* ci: add package version check Signed-off-by: Andy Lee <andy.lee@suse.com> * ci: extract check version in a script Signed-off-by: Andy Lee <andy.lee@suse.com> * ci: update env variable Signed-off-by: Andy Lee <andy.lee@suse.com> --------- Signed-off-by: Andy Lee <andy.lee@suse.com>
28 lines
616 B
YAML
28 lines
616 B
YAML
name: Build Standalone on Release
|
|
on:
|
|
push:
|
|
tags:
|
|
- v[1-9].*
|
|
|
|
jobs:
|
|
check-version:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Check package version
|
|
env:
|
|
TAG_VERSION: ${{github.ref_name}}
|
|
run: ./scripts/check-version.sh $TAG_VERSION
|
|
|
|
build:
|
|
name: Build and Upload Package
|
|
uses: ./.github/workflows/build-and-publish-standalone.yaml
|
|
needs: check-version
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
id-token: write
|
|
with:
|
|
CI_BUILD_TAG: ${{github.ref_name}}
|