File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
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
You can’t perform that action at this time.
0 commit comments