Skip to content

Merge pull request #83 from unb-mds/pipeline #39

Merge pull request #83 from unb-mds/pipeline

Merge pull request #83 from unb-mds/pipeline #39

Workflow file for this run

name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
deploy:

Check failure on line 12 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 12
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: run
run: |
python -m http.server 8000 &
sleep 5
curl -I http://localhost:8000/index.html
- name: Set up Git for deployment
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email '[email protected]'
- name: deploy
run: |
git checkout -b projeto_deploy || git checkout projeto_deploy
git add .
git commit -m "Deploy changes to projeto_deploy branch"
git push origin projeto_deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}