Skip to content
Merged
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
33 changes: 27 additions & 6 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
name: Create Release
on: push
on:
push:
branches:
- master

jobs:
create_release:
name: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0 # This causes all history to be fetched, which is required for calculate-version to function
fetch-depth: 0 # This causes all history to be fetched, which is required for calculate-version to function

- name: Install Python 3.12
uses: actions/setup-python@v1
with:
python-version: 3.12

- name: Upgrade python pip
run: python -m pip install --upgrade pip
run: python -m pip install --upgrade pip

- name: Install git
run: pip install gitpython
Expand All @@ -33,12 +35,31 @@ jobs:

- name: Create release (master only)
id: create-release
if: github.ref == 'refs/heads/master'
uses: actions/create-release@v1
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.SPEC_VERSION }}
release_name: ${{ env.SPEC_VERSION }}

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '24'

- name: Install dependencies
run: make install-node

- name: Run publish
run: make publish

- name: Upload documentation asset to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: build/nrl-consumer-api.json
asset_name: nrl-consumer-api.json
asset_content_type: application/json

Loading