Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 6 additions & 2 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,21 @@ name: Create Release
on:
push:
tags:
- '*'
- 'v*.*.*'

jobs:
create_github_release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Validate release tag
run: |
[[ "${GITHUB_REF_NAME}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]

- uses: actions/checkout@v4
- uses: ncipollo/release-action@v1
with:
makeLatest: true
name: "attack-navigator ${{github.ref_name}}"
body: "See [the changelog](./CHANGELOG.md) for details about what changed in this release."
body: "See [the changelog](./CHANGELOG.md) for details about what changed in this release."
12 changes: 9 additions & 3 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,29 @@ name: GitHub Pages

on:
push:
branches: ["master"]
tags:
- 'v*.*.*'

jobs:
deploy-to-gh-pages:
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
# Every release updates the same gh-pages branch, so serialize deployments
# across tags instead of allowing each tag to deploy concurrently.
group: ${{ github.workflow }}
defaults:
run:
working-directory: ./nav-app/

steps:
- uses: actions/checkout@v4

- name: Validate release tag
run: |
[[ "${GITHUB_REF_NAME}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]

- name: Use Node.js from .nvmrc
uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -58,7 +65,6 @@ jobs:

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/master' }}
with:
deploy_key: ${{ secrets.DEPLOY_KEY }}
publish_dir: ./nav-app/dist/browser
15 changes: 7 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@ name: Build and Publish Docker Image

on:
push:
branches:
- 'master'
- 'develop'
tags:
- 'v*.*.*'

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Validate release tag
run: |
[[ "${GITHUB_REF_NAME}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]

- name: Checkout
uses: actions/checkout@v3
- name: Set Docker Image and Tags
Expand All @@ -21,10 +22,8 @@ jobs:
images: |
ghcr.io/mitre-attack/attack-navigator
tags: |
# set latest tag for master branch
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
# set develop tag for develop branch
type=ref,event=branch,enable=${{ github.ref == format('refs/heads/{0}', 'develop') }}
# set latest tag on release tag event
type=raw,value=latest
# set semver tag (vX.Y.Z) on git tag event
type=semver,pattern=v{{major}}.{{minor}}.{{patch}}
# set git short commit as Docker tag (e.g., sha-ad132f5)
Expand All @@ -49,4 +48,4 @@ jobs:
build-args: |
BUILDTIME=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
REVISION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}
REVISION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
npm version major
npm version minor
npm version patch

This will patch the version number appropriately and create the correct tag on the current commit.
Pushing a stable vX.Y.Z tag triggers the GitHub Release, GitHub Pages deployment, and Docker image publish workflows.
The creation of the tag can be disabled with the --no-git-tag-version if desired.
-->
# 5.3.2 - 21 April 2026
Expand Down
Loading