-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.yml
More file actions
37 lines (30 loc) · 775 Bytes
/
main.yml
File metadata and controls
37 lines (30 loc) · 775 Bytes
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
name: Deploy
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
environment: production # Specify the environment here
steps:
- name: Checkout code
uses: actions/checkout@v2
# Decrypt the secret
- name: Decrypt the client secret
run: |
echo "${{ secrets.DECRYPTION_KEY }}" > decryption_key.txt
python3 decrypt.py
# Set up Python
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
# Install dependencies
- name: Install dependencies
run: |
pip install -r requirements.txt
# Run your application or tests
- name: Run your code
run: |
python3 main.py