-
Notifications
You must be signed in to change notification settings - Fork 8
54 lines (51 loc) · 1.46 KB
/
publish-github.yaml
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
48
49
50
51
52
53
54
name: Publish GitHub
on:
push:
branches:
- main
paths-ignore:
- "**/pyproject.toml"
- "**/src/malloy/__init__.py"
jobs:
test:
uses: "./.github/workflows/test.yaml"
secrets:
SNOWFLAKE_CONNECTION: ${{ secrets.SNOWFLAKE_CONNECTION }}
BIGQUERY_KEY: ${{ secrets.BIGQUERY_KEY }}
publish-github:
needs:
- test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: "true"
token: ${{ secrets.GHAPI_PAT }}
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "18.x"
- name: Use Python
uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Install
run: |
python3 -m pip install --upgrade pip --user
python3 -m pip install pip-tools --user
python3 -m pip install -r requirements.dev.txt --user
python3 -m pip install -e . --user
- name: Build
run: |
git config --global user.email "[email protected]"
git config --global user.name "Malloy CI Bot"
python3 -m bumpver update --tag dev --allow-dirty
python3 -c 'import malloy; malloy.gen_requirements_file()'
./scripts/gen-services.sh
python3 -m build
- name: Publish
run: |
python3 scripts/do-github-release.py
env:
CI: true
GHAPI_PAT: ${{ secrets.GHAPI_PAT }}