Fix/challenge screen #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Flask App CI/CD | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Run check of pwd | |
run: pwd | |
- name: Run check of what's in pwd | |
run: ls | |
- name: Run a one-line script | |
run: python freeze.py | |
- name: switching from HTTPS to SSH | |
run: git remote set-url origin ${{ secrets.STATIC_SSH_KEY }} | |
- name: check for changes | |
run: git status | |
- name: stage changed files | |
run: git add . | |
- name: commit changed files | |
run: git commit -m "Auto updating the docs" | |
- name: fetch from main | |
run: git fetch origin main | |
- name: push code to main | |
run: git push origin HEAD:main |