-
Notifications
You must be signed in to change notification settings - Fork 0
84 lines (71 loc) · 2.09 KB
/
main.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Build duckdb database and archive
on:
push:
branches:
- main
workflow_dispatch:
schedule:
- cron: '0 6 * * *'
defaults:
run:
shell: bash -leo pipefail {0}
jobs:
# job 1
setup-and-build:
name: "Setup dependencies"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
- name: Install mamba
uses: conda-incubator/setup-miniconda@v3
with:
environment-file: environment.yml
activate-environment: dictionary
- name: Install duckdb
uses: opt-nc/setup-duckdb-action@v1.0.9
- name: Install quarto
uses: quarto-dev/quarto-actions/setup@v2
- name: Test installations
env:
AIRTABLE_API_KEY: ${{ secrets.AIRTABLE_API_KEY }}
MOTHERDUCK_TOKEN: ${{ secrets.MOTHERDUCK_TOKEN }}
run: |
echo -n "snakemake: " && snakemake --version
echo -n "python: " && python --version
echo -n "duckdb: " && duckdb --version
echo -n "quarto: " && quarto --version
echo -n "conda: " && conda --version
echo -n "working directory: " && pwd
conda info
snakemake gh_release -n
- name: Build database and upload
env:
AIRTABLE_API_KEY: ${{ secrets.AIRTABLE_API_KEY }}
MOTHERDUCK_TOKEN: ${{ secrets.MOTHERDUCK_TOKEN }}
GH_TOKEN: ${{ github.token }}
run: |
snakemake all_uploads -c all
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: db-artifact
path: gloss.duckdb
overwrite: true
# job 3
# release:
# runs-on: ubuntu-latest
# needs: build
# steps:
# - name: Download artifact
# uses: actions/download-artifact@v4
# - name: Tag version
# uses: codacy/git-version@2.8.0
# id: version
# with:
# prefix: 'v'
# release-branch: 'main'
# minor-identifier: 'minor-bump:'
# major-identifier: 'major-bump:'