Skip to content

Commit a634ee1

Browse files
committed
Disable ci for other branches
1 parent a800185 commit a634ee1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,12 @@ jobs:
5858
#This build step publishes a package as a container
5959
#Thanks to https://www.kenmuse.com/blog/universal-packages-on-github-with-oras/
6060
#Download the resulting package built for master using:
61-
#oras push ghcr.io/linuxcnc/linuxcnc/doc-html:master
61+
#oras pull ghcr.io/linuxcnc/linuxcnc/doc-html:master
6262
htmldocs-package:
6363
runs-on: ubuntu-24.04
6464
needs: htmldocs
65+
#Run on branch master / 2.9 or if the commit is tagged
66+
if: github.ref_name == 'master' || github.ref_name == '2.9' || startsWith(github.ref, 'refs/tags/')
6567
permissions:
6668
packages: write # to create containers
6769
steps:
@@ -83,7 +85,6 @@ jobs:
8385
- name: Publish package
8486
run: |
8587
set -x
86-
ls -l
8788
tar -czf doc-html.tar.gz html
8889
TAG=${{github.ref_name}} #This is either the tag or branch name
8990
echo ${{ secrets.GITHUB_TOKEN }} | oras login --username ${{ github.actor }} --password-stdin ghcr.io

0 commit comments

Comments
 (0)