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
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
jobs:
validate:
name: Validate Code Quality
runs-on: ubuntu-latest
runs-on: [self-hosted, linux, x64]
permissions: # Added permissions
actions: read
contents: read
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
build-archive:
name: Build and Archive Artifacts
needs: validate # Depends on successful validation
runs-on: ubuntu-latest
runs-on: [self-hosted, linux, x64]
if: startsWith(github.ref, 'refs/tags/v') # Only run for tags
outputs: # Define outputs for the release job
version: ${{ steps.get_version.outputs.version }}
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
publish-npm:
name: Publish to NPM
needs: build-archive # Depends on build-archive completion
runs-on: ubuntu-latest
runs-on: [self-hosted, linux, x64]
if: startsWith(github.ref, 'refs/tags/v') # Only run for tags
steps:
- name: Checkout repository
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:
publish-docker:
name: Publish to Docker Hub
needs: build-archive # Depends on build-archive completion
runs-on: ubuntu-latest
runs-on: [self-hosted, linux, x64]
if: startsWith(github.ref, 'refs/tags/v') # Only run for tags
steps:
- name: Checkout repository
Expand Down Expand Up @@ -208,7 +208,7 @@ jobs:
release:
name: Create GitHub Release
needs: [publish-npm, publish-docker] # Depends on successful parallel publishes
runs-on: ubuntu-latest
runs-on: [self-hosted, linux, x64]
if: startsWith(github.ref, 'refs/tags/v') # Only run for tags
permissions:
contents: write # Need permission to create releases and release notes
Expand Down
Loading