Skip to content

Commit

Permalink
Arreglar condición para publicar
Browse files Browse the repository at this point in the history
  • Loading branch information
jesustorresdev committed Oct 6, 2020
1 parent dc49df9 commit e54b72a
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-20.04
steps:

- name: Obtener contenido
- name: Obtener contenidos
uses: actions/checkout@v2
with:
persist-credentials: false
Expand All @@ -26,12 +26,19 @@ jobs:
- name: Generar y testear
run: bundle exec rake tests

- name: Extract el nombre de la rama
uses: nelonoel/branch-name@v1

- name: Publicar
if: github.event.pull_request.types == 'closed' && github.event.pull_request.merged_by != ''
if: |
github.event != 'pull_request' || (
github.event.pull_request.types == 'closed' &&
github.event.pull_request.merged_by != ''
)
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: output/html
TARGET_FOLDER: $${{ github.ref }}
TARGET_FOLDER: ${{ env.BRANCH_NAME }}
CLEAN: true

0 comments on commit e54b72a

Please sign in to comment.