Skip to content

Update azure-pipelines.yml for Azure Pipelines #15

Update azure-pipelines.yml for Azure Pipelines

Update azure-pipelines.yml for Azure Pipelines #15

Workflow file for this run

name: Atualizar gh-pages com commits do master
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout do código
uses: actions/checkout@v2
with:
ref: master
- name: Login no GitHub
uses: actions/[email protected]
with:
github_token: ${{ secrets.GH_PAGES_TOKEN }}

Check failure on line 19 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

You have an error in your yaml syntax on line 19
- name: Criar novo branch
run: |
git config --global user.name "${{ github.actor }}"
git config --global user.email "[email protected]"
git checkout -b gh-pages
//sudo git push --set-upstream origin gh-pages
- name: Fazer merge do código
run: |
git checkout gh-pages
git merge master
git push