results_and_build #1704
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: results_and_build | |
on: | |
schedule: | |
- cron: "0 3 * * *" # must run after analyze.yml & analyze-dmarc.yml | |
push: | |
branches: | |
- main | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "14" | |
- name: Install dependencies | |
run: npm ci | |
- name: Get information results about public sites | |
run: npm run crawl:results | |
- name: Build website | |
run: npm run build | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
publish_dir: ./_site | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
cname: websegura.pucelabits.org | |
# The resulting commit will not trigger another GitHub Actions Workflow run. | |
# This is due to limitations set by GitHub. | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Update information about public sites |