-
-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (47 loc) · 1.49 KB
/
release.yml
File metadata and controls
47 lines (47 loc) · 1.49 KB
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: release
on:
release:
types: [published]
jobs:
release:
runs-on: ubuntu-latest
container:
image: ghcr.io/commonknowledge/do-app-baseimage-django-node:ec719be0d63e9628fb34604ce198c679084c3eeb
# Workaround for: https://github.com/actions/checkout/issues/211
options: --user 1001
volumes:
- "/home/runner/docker/.cache:/home/app/.cache"
env:
DATABASE_URL: postgres://postgres:postgres@db:5432/postgres
DEBUG: True
PY_IGNORE_IMPORTMISMATCH: 1
services:
db:
image: kartoza/postgis:latest
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DBNAME: postgres
POSTGRES_HOSTNAME: postgres
POSTGRES_PORT: 5432
steps:
- uses: actions/checkout@v2
- name: setup git config
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
- uses: actions/cache@v2
with:
path: /home/runner/docker/.cache/poetry
key: do-app-baseimage-django-node:ec719be0d63e9628fb34604ce198c679084c3eeb-poetry-${{ hashFiles('poetry.lock') }}
- run: make install
- run: chmod +x .github/bin/wait-for-it.sh
- run: .github/bin/wait-for-it.sh db:5432
- run: make lint
- run: make prepare-release
env:
GITHUB_REF: v1.0.1
- run: make release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}