Merge pull request #56 from openearth/LAU_NUTS #191
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: Publish absolute STAC catalog | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./main | |
strategy: | |
matrix: | |
python-version: [3.11] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
path: main | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt | |
- name: Test with pytest | |
run: | | |
pytest | |
- name: Checkout release branch | |
uses: actions/checkout@v3 | |
with: | |
ref: live | |
path: live | |
- name: Release | |
run: | | |
python ci/convert.py | |
rm -rf ../live/current | |
cp -rp live ../live/current | |
cd ../live | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add . | |
git commit -m "Absolute version of $GITHUB_SHA" | |
git push |