Merge pull request #10496 from StefanScherer/disable-netlify

ci: Disable netlify-deploy for now
This commit is contained in:
Usha Mandya 2020-03-20 13:56:35 +00:00 committed by GitHub
commit a532675821
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 10 deletions

View File

@ -14,13 +14,14 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: build image - name: build image
run: docker build --build-arg=ENABLE_ARCHIVES=false --target=current -t documentation:latest . run: docker build --build-arg=ENABLE_ARCHIVES=false --target=current -t documentation:latest .
- name: copy static files # Disabled netlify-deploy due to flakey 502 http errors
if: github.event.pull_request.head.repo.fork == false # - name: copy static files
run: docker run -v ${PWD}:/output documentation:latest cp -r /usr/share/nginx/html /output/_site # if: github.event.pull_request.head.repo.fork == false
- uses: ./.github/actions/netlify-deploy # run: docker run -v ${PWD}:/output documentation:latest cp -r /usr/share/nginx/html /output/_site
if: github.event.pull_request.head.repo.fork == false # - uses: ./.github/actions/netlify-deploy
with: # if: github.event.pull_request.head.repo.fork == false
directory: _site # with:
netlify_token: ${{ secrets.NETLIFY_AUTH_TOKEN }} # directory: _site
netlify_account_slug: ${{ secrets.NETLIFY_ACCOUNT_SLUG }} # netlify_token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
site_name: "${{ github.repository }}/${{ github.head_ref }}" # netlify_account_slug: ${{ secrets.NETLIFY_ACCOUNT_SLUG }}
# site_name: "${{ github.repository }}/${{ github.head_ref }}"