Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proof HTML and upload as artifact #10

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 15 additions & 13 deletions .github/workflows/build_pages_native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,24 @@ 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/
- 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 All @@ -46,3 +47,4 @@ jobs:
if: ${{ github.ref == 'refs/heads/main' }}
with:
folder: admin # The folder the action should deploy.

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"