Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

VP-4625: Update theme workflow #172

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,29 @@ jobs:

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup sonarqube
uses: warchant/setup-sonar-scanner@v1

- name: Get Image Version
uses: VirtoCommerce/vc-github-actions/get-image-version@dev
uses: VirtoCommerce/vc-github-actions/get-image-version@master
id: image

- name: Get changelog
id: changelog
uses: VirtoCommerce/vc-github-actions/changelog-generator@master

- name: SonarCloud Scan
uses: VirtoCommerce/vc-github-actions/sonar-theme@dev
uses: VirtoCommerce/vc-github-actions/sonar-theme@master

- name: Build
uses: VirtoCommerce/vc-github-actions/build-theme@dev
uses: VirtoCommerce/vc-github-actions/build-theme@master

- name: Publish
id: publish
uses: VirtoCommerce/vc-github-actions/publish-theme@dev
uses: VirtoCommerce/vc-github-actions/publish-theme@master

- name: Create Release
if: github.ref == 'refs/heads/master'
Expand All @@ -58,6 +64,7 @@ jobs:
release_name: ${{ steps.image.outputs.tag }}
draft: false
prerelease: false
body: ${{ steps.changelog.outputs.changelog }}

- name: Upload Release Asset
if: github.ref == 'refs/heads/master'
Expand All @@ -67,4 +74,4 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ${{ steps.publish.outputs.artifactPath }}
asset_name: ${{ steps.publish.outputs.artifactName }}
asset_content_type: application/zip
asset_content_type: application/zip