Skip to content

Port from Rust implementation #19

Port from Rust implementation

Port from Rust implementation #19

Workflow file for this run

name: Documentation
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: FantasticFiasco/action-update-license-year@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
path: |
source/**/*.d
dub.json
LICENSE
README.md
# https://regex101.com/r/P3LblY/3
# https://github.com/marketplace/actions/update-license-copyright-year-s#i-want-to-update-my-license-but-it-isnt-supported-by-this-action
transform: (?<=[Copyright © |Copyright (c) |Copyright &copy; ])(?<from>\d{4})(-\d{4})?(?=[ \w.,"]*$)
branchName: license/{{currentYear}}
commitTitle: Update licensing dates for {{currentYear}}
prTitle: Happy New Year! 🎉️
prBody: Update licensing copyright dates for {{currentYear}}.
labels: documentation
- name: Install D compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: dmd-latest
- name: Cache DUB Artifacts
uses: actions/cache@v2
with:
path: ~/.dub
key: ${{ runner.os }}-dub-${{ hashFiles('**/dub.json') }}
restore-keys: |
${{ runner.os }}-dub-
- name: Build Documentation
run: dub build -b ddox
- name: GitHub Pages
if: success() && github.ref == 'refs/heads/master'
uses: crazy-max/ghaction-github-pages@v2.1.2
with:
target_branch: gh-pages
build_dir: docs
keep_history: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}