-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (59 loc) · 2.07 KB
/
feature.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
# This is a basic workflow to help you get started with Actions
name: publicacion-db-pr
# Controls when the action will run.
on:
pull_request:
branches:
- '*'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
etl:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'zulu'
cache: 'maven'
- name: Build project with Maven
run: mvn -B clean compile
- uses: actions/setup-python@v1
- name: publishes to datasette
uses: BSFishy/pip-action@v1
with:
packages: |
datasette
sqlite-utils
# - name: Install vercel plugin
# run: |
# datasette install datasette-publish-vercel
# Disabling to reduce the size of the image
- name: Enable FTS
run: |
sqlite-utils enable-fts *.db votacion_resultado asunto etiquetas
sqlite-utils enable-fts *.db votacion_grupo_parlamentario asunto etiquetas
sqlite-utils enable-fts *.db votacion_congresista asunto etiquetas
- name: View context attributes
uses: actions/github-script@v5
with:
script: console.log(context)
# - name: Deploy Datasette using Vercel
# id: deploy-datasette
# env:
# VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
# run: |-
# datasette publish vercel *.db \
# --token $VERCEL_TOKEN \
# --no-prod \
# --project congreso-pleno-asistencia-votacion \
# --install datasette-vega \
# --install datasette-export-notebook \
# --install datasette-copyable \
# --install datasette-block-robots \
# --install datasette-pretty-json