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
37 changes: 37 additions & 0 deletions .github/workflows/build-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish build branch

# Builds the shippable plugin and force-pushes it as a fresh history to the
# `build` branch, so a server can deploy it with git (see update-ploetner.sh).
# Run manually on any branch to test that branch's build.
on:
push:
branches:
- master
workflow_dispatch:

permissions:
contents: write

concurrency:
group: build-branch
cancel-in-progress: true

jobs:
build:
name: Build and publish to build
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v7
- name: Build plugin
id: build
uses: ./.github/actions/build-plugin
- name: Publish to build
run: |
cd "${{ steps.build.outputs.build-dir }}"
git init -q -b build
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A
git commit -q -m "Build ${GITHUB_SHA::7} from ${GITHUB_REF_NAME}"
git push -f "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" build