Skip to content

Commit

Permalink
Use org-wide config where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpratt committed Jan 31, 2024
1 parent 7165052 commit 51ac452
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 83 deletions.
35 changes: 0 additions & 35 deletions .github/CODE_OF_CONDUCT.md

This file was deleted.

2 changes: 0 additions & 2 deletions .github/FUNDING.yml

This file was deleted.

54 changes: 8 additions & 46 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,54 +1,16 @@
name: Build
name: Deploy

on:
push:
branches: ["**"]
tags-ignore: ["**"]
branches: ["main"]
paths-ignore:
- LICENSE-Apache
- LICENSE-MIT
pull_request:
paths-ignore:
- LICENSE-Apache
- LICENSE-MIT
workflow_dispatch:

jobs:
build:
name: Build
runs-on: ubuntu-20.04

steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false

- name: Check for typos
uses: crate-ci/typos@master

- name: Install mdbook
run: |
wget https://github.com/rust-lang/mdBook/releases/download/v0.4.7/mdbook-v0.4.7-x86_64-unknown-linux-gnu.tar.gz -O - | tar -xz
mkdir mdbook-path
mv mdbook mdbook-path
echo "$(pwd)/mdbook-path" >> $GITHUB_PATH
- name: Build diagrams
run: |
pip install -r diagrams/requirements.txt
mkdir src/diagrams
python diagrams/diagrams.py
- name: Build
run: mdbook build

- name: Publish internal docs
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
token: ${{ secrets.ACCESS_TOKEN }}
branch: main
folder: book
target-folder: book
repository-name: time-rs/time-rs.github.io
if: github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.master_branch)
deploy:
name: Deploy
uses: time-rs/time-rs.github.io/.github/workflows/trigger-deploy.yaml@main
secrets: inherit
permissions:
actions: write

0 comments on commit 51ac452

Please sign in to comment.