diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8f2f89e..297426f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,12 +1,24 @@ name: CI -'on': [push, pull_request, workflow_dispatch] +"on": [push, pull_request] jobs: build: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 # full history for metadata + submodules: true + + - name: Pull LFS files + run: | + git lfs install + git config -f .lfsconfig lfs.url https://git-lfs.lsst.cloud/lsst-dm/milestones + git lfs pull + working-directory: ./milestones + - name: Set up Python uses: actions/setup-python@v4 with: @@ -18,16 +30,16 @@ jobs: python -m pip install -r requirements.txt python -m pip install -r milestones/requirements.txt - - name: run make + - name: Build shell: bash run: | make html working-directory: . - call-workflow: - uses: lsst-sqre/rubin-sphinx-technote-workflows/.github/workflows/ci.yaml@v1 - with: - handle: dmtn-158 - secrets: - ltd_username: ${{ secrets.LTD_USERNAME }} - ltd_password: ${{ secrets.LTD_PASSWORD }} + - name: Upload + if: ${{ github.event_name == 'push' }} + env: + LTD_PASSWORD: ${{ secrets.LTD_PASSWORD }} + LTD_USERNAME: ${{ secrets.LTD_USERNAME }} + run: | + ltd upload --gh --dir _build/html --product dmtn-232