diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 0000000..6c6ee17 --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,28 @@ +name: GitHub Pages + +on: + push: + branches: + - master + +jobs: + deploy: + runs-on: ubuntu-20.04 + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + steps: + - uses: actions/checkout@v4 + + - name: Setup mdBook + uses: peaceiris/actions-mdbook@v1 + with: + mdbook-version: "latest" + + - run: mdbook build + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + if: ${{ github.ref == 'refs/heads/master' }} + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./_book diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0f530a7..0000000 --- a/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -language: rust -rust: -- stable -install: -- cargo install mdbook -script: -- mdbook build -after_success: -- git config user.name "Colden Cullen" -- git config user.email "colden@coldencullen.com" - -- git checkout master -- mdbook build -- git add _book -f -- git commit -m "Rebuilt book" - -- git remote add deploy https://ColdenCullen:$GH_TOKEN@github.com/$TRAVIS_REPO_SLUG -- git fetch deploy - -- git subtree split --prefix=_book --branch=build -- git checkout build -- git push --force deploy build:gh-pages -env: - global: - secure: DzRVF8zDNU/dZm3dAi/50IDdgjAlPHzMlzPEG5iDkcLfBCFC35DlWRzWnvCrr69ymB83BsoB0SyBfOYdS8NMAh5b2Z4wypqZHfaY36pbzcLaO4eMsR4osV0gnDibu8oEzbxDiCFSJTwkmb7/b4jeRuV7mqFQLImeyJ6RRyYhRbU=