Skip to content

Commit

Permalink
Proof HTML and upload as artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSeccubus committed Oct 19, 2023
1 parent b289850 commit c264e1a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 13 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/build_pages_native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,26 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
# with:
# fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
- name: Build
run: hugo --minify
# - name: "Fix security.txt"
# run: mkdir public/.well-known && (cd public/.well-known && ln -s ../security.txt) && ls -al public/.well-known
# - name: ".htaccess"
# run: cp .htaccess public/
# - name: Test HTML code
# run: |
# sudo apt-get update -y
# sudo apt-get install python3-pip libcurl4 -y
# pip3 install html5validator
# sudo gem install --no-document html-proofer
# ./proof_html.sh || exit 0
- name: Upload HTML
uses: actions/upload-artifact@v3
with:
name: html
path:
- public/
- admin/
- name: Test HTML code
uses: Cyb3r-Jak3/[email protected]
with:
root: public/
- name: Upload HTML test report
uses: actions/upload-artifact@v3
with:
name: log
path: log.log
- name: rsync deploy
uses: burnett01/[email protected]
if: ${{ github.ref == 'refs/heads/main' }}
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

0 comments on commit c264e1a

Please sign in to comment.