-
Notifications
You must be signed in to change notification settings - Fork 5
47 lines (44 loc) · 1.12 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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