Skip to content

https://github.com/w3c/wai-about-wai/commit/b456ac97eb3c41201d173737025b16f602ccee33 #657

https://github.com/w3c/wai-about-wai/commit/b456ac97eb3c41201d173737025b16f602ccee33

https://github.com/w3c/wai-about-wai/commit/b456ac97eb3c41201d173737025b16f602ccee33 #657

Workflow file for this run

name: Deploy
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Set up Ruby 2.6.2
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.6.2' # matches Netlify of ruby version
# bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Update Externals
run: |
git submodule update --remote
- name: Commit changed files
uses: stefanzweifel/git-auto-commit-action@v2.1.0
with:
commit_message: Apply automatic changes
branch: master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build and test with Jekyll
run: |
export WAI_LIVE_SITE=true
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec jekyll build --config "_config.yml,_config_prod.yml" --profile
# Only works for pushes to PRs and that is not useful for our approach.
# - name: calibreapp/image-actions
# uses: docker://calibreapp/github-image-actions
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Generate list of resources
run: |
find ./_site -type f | sed 's,^\.\/_site,,' | sort > ./_site/manifest.txt
- name: Publish to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _site
- name: Zip Files
uses: montudor/action-zip@v0.1.0
with:
args: zip -r build.zip ./_site
- name: Upload zip file to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build.zip
asset_name: build.zip
tag: ${{ github.ref }}
overwrite: true
- name: Wait for gh-pages to be updated
run: sleep 90s
shell: bash
- name: Update URL mapping on W3C site
uses: fjogeleit/http-request-action@master
with:
url: 'https://www.w3.org/services/update-wai-map'
method: 'POST'
timeout: 30000
# - name: Check Links
# uses: peter-evans/link-checker@v1.0.0
# with:
# args: -v -d https://www.w3.org/ -r _site
# - name: Upload link check report to release
# uses: svenstaro/upload-release-action@v1-release
# with:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# file: ./link-checker/out.md
# asset_name: link-report.md
# tag: ${{ github.ref }}
# overwrite: true
# - name: Create Issue From File
# uses: peter-evans/create-issue-from-file@v1.0.1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# ISSUE_TITLE: Link Checker Report
# ISSUE_CONTENT_FILEPATH: ./link-checker/out.md
# ISSUE_LABELS: report, automated issue