chore(main): Release visualization-aws-compliance v2.0.1 (#574) #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish AWS Compliance Visualization | |
on: | |
push: | |
tags: | |
- "visualization-aws-compliance-v*.*.*" | |
jobs: | |
publish-visualization-aws-compliance: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: visualizations/aws/compliance | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Update Release Notes | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
const fs = require('fs/promises'); | |
const { data } = await github.rest.repos.getReleaseByTag({ | |
owner: "cloudquery", | |
repo: context.repo.repo, | |
tag: context.ref.replace('refs/tags/', ''), | |
}); | |
const releaseNotes = data.body; | |
const linksRemoved = releaseNotes.replace(/\[([^\]]+)\]\([^)]+\)/g, '$1'); | |
const changelogPath = `visualizations/aws/compliance/changelog.md`; | |
await fs.writeFile(changelogPath, linksRemoved); | |
- name: Run build | |
run: | | |
make build | |
- name: Setup CloudQuery | |
uses: cloudquery/setup-cloudquery@v3 | |
with: | |
version: v5.3.1 | |
- name: Publish visualization | |
env: | |
CLOUDQUERY_API_KEY: ${{ secrets.CLOUDQUERY_API_KEY }} | |
run: | | |
tag=${{ github.ref_name }} | |
version=${tag#"visualization-aws-compliance-"} | |
cloudquery addon publish manifest.json $version -f |