Skip to content

Update extreme_programming.md (#404) #1108

Update extreme_programming.md (#404)

Update extreme_programming.md (#404) #1108

Workflow file for this run

name: Node CI - Check Article Validity & Deploy
on: [push, pull_request]
env:
# BEWARE of using ENV variables for "pull_request_target"! It may be exposed!
# Thanks to @asottile (https://github.com/sponsors/asottile)!
CI: true
DX_HEADER: ${{ secrets.DX_HEADER }}
IMPORT_URL: ${{ secrets.IMPORT_URL }}
IMPORT_URL_STAGING: ${{ secrets.IMPORT_URL_STAGING }}
KB_VALIDATION_URL: ${{ secrets.KB_VALIDATION_URL }}
X_DX_AUTH_HEADER: ${{ secrets.X_DX_AUTH_HEADER }}
jobs:
# check-article:
# if: github.event_name == 'pull_request'
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# with:
# fetch-depth: 1
# ref: ${{ github.event.pull_request.head.sha }}
# - name: Use Node.js 12
# uses: actions/setup-node@v1
# with:
# node-version: 12
# - name: Danger JS
# run: |
# yarn && yarn danger ci
#deploy-to-preview:
# if: github.event_name == 'pull_request' && github.base_ref == 'master'
# needs: check-article
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Use Node.js 12
# uses: actions/setup-node@v1
# with:
# node-version: 12
# - name: Deploy to preview.developerexperience.io
# env:
# HEAD_REPO_GIT_URL: ${{ github.event.pull_request.head.repo.git_url }}
# run: 'curl -f -XPOST -H "X-DX-Auth: FskPmL8JM4BaH8j2KTKRRqMU4F3TUgvKxppuyn" https://preview.developerexperience.io/api/v1/articles/import -d "repo_url=$HEAD_REPO_GIT_URL" -d "branch=$GITHUB_HEAD_REF"'
deploy-to-production:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Use Node.js 12
uses: actions/setup-node@v1
with:
node-version: 12
- name: Deploy to developerexperience.io
run: 'curl -f -XPOST -H "$DX_HEADER" $IMPORT_URL'