Update azure-pipelines.yml for Azure Pipelines #25
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: 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 }} | ||
- 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 |