-
Notifications
You must be signed in to change notification settings - Fork 27
36 lines (34 loc) · 1.01 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
name: Release Steps
on:
push:
tags:
- '*'
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v3
with:
# Retrieves all commit history for path filter checking
fetch-depth: 0
- name: setup Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: install GDAL and python bindings
run: sudo apt update && sudo apt-get install -y gdal-bin python3-gdal
- name: install Poetry
uses: snok/[email protected]
- name: configure pypi credentials
run: poetry config pypi-token.pypi "${{ secrets.PYPI_API_KEY }}"
- name: Publish package
run: poetry publish --build
- name: install dependencies
run: poetry install
- name: update metadata
env:
DATABASE_URL: ${{ secrets.OPENSTATES_DATABASE_URL }}
run: poetry run os-initdb