Skip to content

chore(main): Release visualization-aws-compliance v2.0.1 (#574) #7

chore(main): Release visualization-aws-compliance v2.0.1 (#574)

chore(main): Release visualization-aws-compliance v2.0.1 (#574) #7

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