From 944400af75641cb8b44206a226322a45e867a62e Mon Sep 17 00:00:00 2001 From: Samuel Burnham <45365069+samuelburnham@users.noreply.github.com> Date: Thu, 29 Aug 2024 15:43:54 -0400 Subject: [PATCH] chore: Fix deployment --- .github/workflows/ci.yml | 24 ++++++++++++++++++++---- .github/workflows/publish.yml | 24 ------------------------ CNAME | 1 - LICENSE.md | 2 +- 4 files changed, 21 insertions(+), 30 deletions(-) delete mode 100644 .github/workflows/publish.yml delete mode 100644 CNAME diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 21cdb48..e927b08 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: CI +name: Build and deploy on: pull_request: @@ -18,7 +18,23 @@ jobs: - name: Install mdbook-linkcheck uses: taiki-e/install-action@mdbook-linkcheck - run: mdbook build + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./book + retention-days: 1 - # Check documentation links aren't broken - link-checker: - uses: argumentcomputer/ci-workflows/.github/workflows/links-check.yml@main + deploy: + if: github.ref_name == 'main' && github.event_name == 'push' + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: test + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 39eb390..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Deploy user manual to GitHub Pages - -on: - push: - branches: - - main - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable - - name: Install mdbook - uses: taiki-e/install-action@mdbook - - name: Install mdbook-linkcheck - uses: taiki-e/install-action@mdbook-linkcheck - - run: mdbook build - - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./book - publish_branch: gh-pages diff --git a/CNAME b/CNAME deleted file mode 100644 index b3f7853..0000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -docs.argument.xyz diff --git a/LICENSE.md b/LICENSE.md index 60e830f..4fe373e 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023 Lurk Lab +Copyright (c) 2023 Argument Computer Corporation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal