Create jekyll-gh-pages.yml #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build TAP Schema and Datalink | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
# Only do Docker builds of ticket branches and tagged releases. | |
if: startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/tickets/') | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.12" | |
cache: "pip" | |
- name: Install dependencies | |
# Only install Felis rather than using the separate requirements.txt, | |
# since the dependencies may conflict. Felis already includes all the | |
# required dependencies for the tap-schema build. | |
run: | | |
python -m pip install --upgrade pip | |
pip install 'lsst-felis @ git+https://github.com/lsst/felis@main' | |
working-directory: ./tap-schema | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_TOKEN }} | |
- name: Run the build | |
id: build-tap-schema | |
run: ./build-all | |
working-directory: ./tap-schema | |
- name: Build datalink release | |
id: build-datalink | |
run: ./build | |
working-directory: ./datalink | |
- name: Release Datalink | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
datalink/datalink-columns.zip | |
datalink/datalink-snippets.zip |