-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.15 KB
/
deploy.yml
File metadata and controls
51 lines (43 loc) · 1.15 KB
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
name: Deploy Project
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
GH_HEAD_REF: ${{ github.head_ref }}
GH_REF: ${{ github.ref_name }}
permissions:
id-token: write
contents: read
pull-requests: write
jobs:
deploy:
name: Deploy Project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: pip install outerbounds ob-project-utils
- name: Configure Outerbounds
run: |
outerbounds service-principal-configure \
--from-obproject-toml \
--github-actions
- name: Deploy Project
env:
COMMIT_URL: "https://github.com/${{ github.repository }}/commit/"
CI_URL: "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMMENTS_URL: ${{ github.event.pull_request.comments_url }}
PYTHONUNBUFFERED: 1
run: obproject-deploy