Skip to content

doc tweak

doc tweak #15

name: Publish Subpackages
on:
push:
branches:
- main
# Only trigger if one of these folders is modified
paths:
- 'timev/**'
- 'jobsched/**'
- 'lts-cm/**'
- 'levintreesearch_cm/**'
# - 'future-package/**'
permissions:
contents: write
jobs:
publish:
runs-on: ubuntu-latest
strategy:
matrix:
# List your packages here.
# The workflow will run a separate job for each item in this list.
package: [timev, jobsched, lts-cm, levintreesearch_cm]
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Publish ${{ matrix.package }} to orphan branch
run: |
cd ${{ matrix.package }}
git init
git checkout -b ${{ matrix.package }}-pkg
git add -A
git -c user.name="github-actions[bot]" \
-c user.email="github-actions[bot]@users.noreply.github.com" \
commit -m "Update ${{ matrix.package }} from commit ${{ github.sha }}"
git push --force \
https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git \
${{ matrix.package }}-pkg