Skip to content

Update netboxcommunity/netbox Docker tag to v3.6.9 #147

Update netboxcommunity/netbox Docker tag to v3.6.9

Update netboxcommunity/netbox Docker tag to v3.6.9 #147

Workflow file for this run

name: Build & Release
on: push
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: "14"
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Install Dependencies
run: npm ci
- name: Run Typechecks
run: npm run typecheck
- name: Build Frontend Artifact
run: npm run build
- name: Build Plugin Artifact
run: python setup.py sdist
- name: Determine file name
id: names
run: echo "::set-output name=artifact::$(python setup.py --fullname)"
- name: Save Artifact
uses: actions/upload-artifact@v3
with:
name: plugin
path: dist/${{ steps.names.outputs.artifact }}.tar.gz
release:
runs-on: ubuntu-20.04
needs: build
if: "${{ github.ref_type == 'tag' }}"
steps:
- name: Fetch release artifact
uses: actions/download-artifact@v3
with:
name: plugin
path: dist
- name: Create release
run: gh release create ${{ github.ref_name }} ./dist/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}