Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/manastech/handbook
Browse files Browse the repository at this point in the history
  • Loading branch information
jkicillof committed Oct 6, 2024
2 parents 1ea1cd7 + 36eb257 commit e4dbee0
Show file tree
Hide file tree
Showing 3 changed files with 290 additions and 19 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:

steps:
- name: Checkout branch
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up NodeJS
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '14'
- name: Install dependencies
Expand All @@ -26,23 +26,22 @@ jobs:
- name: Build the site
run: yarn export

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.5
- name: Install dev dependencies (for testing)
run: yarn install --non-interactive --no-progress

- name: Start web server
working-directory: ./out
run: |
python -m http.server &
yarn run http-server -o ./ &
sleep 5 &&
curl http://localhost:8000 -I
curl http://localhost:8080 -I
- name: Check for broken links
run: |
curl http://localhost:8000 -I &&
wget -r -l8000 --spider -e robots=off --reject-regex='\/&$' -D localhost http://localhost:8000 -o broken-links.log
curl http://localhost:8080 -I &&
wget -r -l8080 --spider -e robots=off --reject-regex='\/&$' -D localhost http://localhost:8080 -o broken-links.log
- name: Upload broken links log as artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: failure()
with:
name: broken-links
Expand All @@ -52,7 +51,7 @@ jobs:
run: echo "$GITHUB_SHA (#$GITHUB_RUN_NUMBER)" > out/VERSION

- name: Setup AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@
"remark-footnotes": "^3.0.0",
"remark-parse": "^9.0.0",
"remark-react": "^8.0.0"
},
"devDependencies": {
"http-server": "^14.1.1"
}
}
Loading

0 comments on commit e4dbee0

Please sign in to comment.