Skip to content

Publish

Publish #1661

Workflow file for this run

name: Publish
on:
workflow_dispatch:
inputs:
localfs_release_name:
description: 'localfs package version'
required: false
default: 'nightly'
localfs_ref:
description: 'localfs package ref'
required: false
workflow_run:
workflows:
- 'Tests'
branches:
- main
types:
- completed
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
publish:
if: |
( github.event.workflow_run.conclusion == 'success' && github.ref == 'refs/heads/main' ) ||
( github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' )
uses: 'flowfuse/github-actions-workflows/.github/workflows/publish_node_package.yml@v0.37.0'
with:
package_name: flowfuse
build_package: true
publish_package: true
package_dependencies: |
@flowfuse/driver-localfs=nightly
secrets:
npm_registry_token: ${{ secrets.NPM_PUBLISH_TOKEN }}
sentry_auth_token: ${{ secrets.SENTRY_AUTH_TOKEN }}
sentry_organisation: ${{ secrets.SENTRY_ORGANISATION }}
sentry_project: ${{ secrets.SENTRY_PROJECT }}
dispatch_container_build:
needs: publish
runs-on: ubuntu-latest
steps:
- name: Generate a token
id: generate_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.GH_BOT_APP_ID }}
private_key: ${{ secrets.GH_BOT_APP_KEY }}
- name: Trigger flowforge container build
uses: benc-uk/workflow-dispatch@v1
with:
workflow: flowforge-container.yml
repo: flowfuse/helm
ref: main
token: ${{ steps.generate_token.outputs.token }}
inputs: '{"flowforge_ref": "${{ github.ref }}", "flowforge_release_name": "${{ env.release_name }}"}'