-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (48 loc) · 1.36 KB
/
ci_cd_updated_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
name: CI/CD - New updates to 'main'
on:
push:
branches: [main]
jobs:
update-dependabot-branch-and-docs:
name: External
uses: SINTEF/ci-cd/.github/workflows/ci_cd_updated_default_branch.yml@v2.7.4
if: github.repository_owner == 'Materials-Consortia'
with:
# General
git_username: OPTIMADE Developers
git_email: "dev@optimade.org"
default_repo_branch: main
# Dependabot branch
update_dependencies_branch: false
# Documentation
update_docs: true
update_python_api_ref: true
package_dirs: optimade_gateway
update_docs_landing_page: true
python_version: "3.10"
doc_extras: "[docs]"
exclude_files: |
__init__.py
run.py
full_docs_dirs: models
docs_framework: mkdocs
secrets:
PAT: ${{ secrets.RELEASE_PAT_CASPER }}
deploy-fly:
name: Deploy to Fly
if: github.repository_owner == 'Materials-Consortia'
runs-on: ubuntu-latest
environment:
name: fly
url: https://optimade-gateway.fly.dev
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Fly
uses: superfly/flyctl-actions/setup-flyctl@v1
- name: Deploy to Fly
run: flyctl deploy --remote-only -c ./.github/fly.toml