Skip to content

Merge branch 'main' into alpha #54

Merge branch 'main' into alpha

Merge branch 'main' into alpha #54

Workflow file for this run

#*********************************************************************
# Copyright (c) Intel Corporation 2023
# SPDX-License-Identifier: Apache-2.0
#*********************************************************************/
# This workflow will release new versions when required using semantic-release
name: Semantic-Release CI
on:
push:
branches: [alpha]
permissions:
contents: read
jobs:
release:
permissions:
contents: write # for Git to git push
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
egress-policy: audit
- name: Checkout Console
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
persist-credentials: false
- name: Check out Sample Web UI
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # master
with:
repository: open-amt-cloud-toolkit/sample-web-ui
ref: main
path: ./temp
- run: npm ci
working-directory: ./temp
- run: npm run build-enterprise
working-directory: ./temp
- name: move files
run: mv ./temp/ui/* ./internal/controller/http/ui
- name: Docker Login
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
registry: vprodemo.azurecr.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
logout: true
- name: Semantic Release
uses: cycjimmy/semantic-release-action@cb425203a562475bca039ba4dbf90c7f9ac790f4 # v4.1.0
with:
semantic_version:
19.0.5 # It is recommended to specify a version range
# for semantic-release when using
# semantic-release-action lower than @v3
extra_plugins: |
@semantic-release/exec@6.0.3
env:
GITHUB_TOKEN: ${{ secrets.ROSIE_TOKEN }}