Skip to content

Commit

Permalink
config
Browse files Browse the repository at this point in the history
  • Loading branch information
rahilmansuri1 authored Jul 15, 2024
1 parent 3632577 commit b0db4ad
Showing 1 changed file with 29 additions and 5 deletions.
34 changes: 29 additions & 5 deletions .github/workflows/envTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
Expand All @@ -26,9 +29,30 @@ jobs:
- name: Clone rgb-lightning-node repository with submodules
run: git clone https://github.com/RGB-Tools/rgb-lightning-node --recurse-submodules --shallow-submodules

- name: Build the project in debug mode
working-directory: rgb-lightning-node
run: cargo install --debug --path .
- name: Set environment variables from secrets
env:
CLIENT_ID: ${{ secrets.CLIENT_ID }}
PROJECT_ID: ${{ secrets.PROJECT_ID }}
AUTH_URI: ${{ secrets.AUTH_URI }}
TOKEN_URI: ${{ secrets.TOKEN_URI }}
AUTH_PROVIDER_CERT_URL: ${{ secrets.AUTH_PROVIDER_CERT_URL }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
run: |
echo "client_config = {" > config.py
echo " 'installed': {" >> config.py
echo " 'client_id': '${CLIENT_ID}'," >> config.py
echo " 'project_id': '${PROJECT_ID}'," >> config.py
echo " 'auth_uri': '${AUTH_URI}'," >> config.py
echo " 'token_uri': '${TOKEN_URI}'," >> config.py
echo " 'auth_provider_x509_cert_url': '${AUTH_PROVIDER_CERT_URL}'," >> config.py
echo " 'client_secret': '${CLIENT_SECRET}'," >> config.py
echo " }," >> config.py
echo "}" >> config.py
cat config.py
# - name: Build the project in debug mode
# working-directory: rgb-lightning-node
# run: cargo build --debug

- name: List generated binaries
run: ls -l target/debug/
# - name: List generated binaries
# run: ls -l target/debug/

0 comments on commit b0db4ad

Please sign in to comment.