working app pages #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish Config | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "bos.config.json" | |
| workflow_dispatch: | |
| inputs: | |
| deploy: | |
| description: "Build/deploy all workspaces before publish" | |
| required: false | |
| default: false | |
| type: boolean | |
| permissions: | |
| contents: read | |
| jobs: | |
| publish: | |
| if: github.event_name == 'workflow_dispatch' || !contains(github.event.head_commit.message, '[skip ci]') | |
| runs-on: ubuntu-latest | |
| env: | |
| BOS_INSTALL_NEAR_CLI: "true" | |
| NEAR_PRIVATE_KEY: ${{ secrets.NEAR_PRIVATE_KEY }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Publish config | |
| run: | | |
| if [ "${{ github.event_name }}" = "workflow_dispatch" ] && [ "${{ inputs.deploy }}" = "true" ]; then | |
| bun packages/everything-dev/cli.js publish --deploy | |
| else | |
| bun packages/everything-dev/cli.js publish | |
| fi |