Skip to content

Commit

Permalink
forget workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
womullan committed Jan 30, 2024
1 parent 6a44dce commit 8e941f8
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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

0 comments on commit 8e941f8

Please sign in to comment.