forked from fortran-lang/registry
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (32 loc) · 949 Bytes
/
generate_tarballs.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
# Github action to generate of the registry database archives
#
name: Registry Database Archive
on:
workflow_dispatch:
schedule:
- cron: "0 0 1,15 * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout source
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
- name: Setup mongo tools - only shell
uses: boly38/action-mongo-tools@stable
with:
mongo-shell: "false"
mongo-tools: "true"
- name: Install python libraries
run: pip3 install --user -r backend/requirements.txt
- name: load env file
run: |
echo "${{ secrets.ENV_FILE }}" > backend/.env
- name: generate tarball
run: cd backend && python generate_tarball.py
- name: Archives
uses: actions/upload-artifact@v2
with:
name: registry_database
path: backend/static/