From 568428319ae7485be8e3096de863bdd70bf124f5 Mon Sep 17 00:00:00 2001 From: csc530 <77406318+csc530@users.noreply.github.com> Date: Sun, 10 Dec 2023 20:21:29 -0500 Subject: [PATCH] :construction_worker: ci(actions): remove old gh pages action --- .github/workflows/branchless.yml | 86 -------------------- .github/workflows/docs.yml | 130 +++++++++++++++++++------------ 2 files changed, 82 insertions(+), 134 deletions(-) delete mode 100644 .github/workflows/branchless.yml diff --git a/.github/workflows/branchless.yml b/.github/workflows/branchless.yml deleted file mode 100644 index 2129b81..0000000 --- a/.github/workflows/branchless.yml +++ /dev/null @@ -1,86 +0,0 @@ -# This is a basic workflow to help you get started with Actions - -name: docs CI - -# Controls when the workflow will run -on: - # Triggers the workflow on push or pull request events but only for the "main" branch - push: - branches: [ "main" ] - paths: - - 'docs/**' - - '.github/workflows/branchless.yml' - - "src/demos/**" - pull_request: - branches: [ "main" ] - paths: - - 'docs/**' - - '.github/workflows/branchless.yml' - - "src/demos/**" - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write - -# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. -# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. -concurrency: - group: "pages" - cancel-in-progress: false - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - build-and-deploy: - runs-on: ubuntu-latest - - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - - steps: - - uses: actions/checkout@v4 - with: - # fetch all commits to get last updated time or other git log info - fetch-depth: 0 - - - name: Setup pnpm - uses: pnpm/action-setup@v2 - with: - # choose pnpm version to use - version: 8 - # install deps with pnpm - run_install: true - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - # choose node.js version to use - node-version: 18 - # cache deps for pnpm - cache: pnpm - - # run build script - - name: Build VuePress site - run: "pnpm docs:build" - - - name: Upload artifact - uses: actions/upload-artifact@v3 - with: - name: docs - path: docs/.vuepress/dist - - - name: Setup Pages - uses: actions/configure-pages@v4 - - name: Upload artifact - uses: actions/upload-pages-artifact@v2 - with: - # Upload entire repository - path: 'docs/.vuepress/dist' - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v3 diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 20b10a4..11ea7f2 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,52 +1,86 @@ -name: Build, commit, and deploy documentation to GitHub Pages +# This is a basic workflow to help you get started with Actions +name: vuebulma docs CI + +# Controls when the workflow will run on: - push: - branches: ["main"] - paths: - - 'docs/**' - - '.github/workflows/docs.yml' - # trigger deployment manually - workflow_dispatch: + # Triggers the workflow on push or pull request events but only for the "main" branch + push: + branches: [ "main" ] + paths: + - 'docs/**' + - '.github/workflows/docs.yml' + - "src/demos/**" + pull_request: + branches: [ "main" ] + paths: + - 'docs/**' + - '.github/workflows/docs.yml' + - "src/demos/**" + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - docs: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - with: - # fetch all commits to get last updated time or other git log info - fetch-depth: 0 - submodules: true - - - name: Setup pnpm - uses: pnpm/action-setup@v2 - with: - # choose pnpm version to use - version: 7 - # install deps with pnpm - run_install: true - - - name: Setup Node.js - uses: actions/setup-node@v3 - with: - # choose node.js version to use - node-version: 18 - # cache deps for pnpm - cache: pnpm - - # run build script - - name: Build VuePress site - run: pnpm docs:build - - # please check out the docs of the workflow for more details - - name: Deploy to GitHub Pages branch - uses: peaceiris/actions-gh-pages@v3 - # If you're changing the branch from main, - # also change the `main` in `refs/heads/main` - # below accordingly. - if: ${{ github.ref == 'refs/heads/main' }} - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./docs/.vuepress/dist \ No newline at end of file + build-and-deploy: + runs-on: ubuntu-latest + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - uses: actions/checkout@v4 + with: + # fetch all commits to get last updated time or other git log info + fetch-depth: 0 + + - name: Setup pnpm + uses: pnpm/action-setup@v2 + with: + # choose pnpm version to use + version: 8 + # install deps with pnpm + run_install: true + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + # choose node.js version to use + node-version: 18 + # cache deps for pnpm + cache: pnpm + + # run build script + - name: Build VuePress site + run: "pnpm docs:build" + + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: docs + path: docs/.vuepress/dist + + - name: Setup Pages + uses: actions/configure-pages@v4 + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 + with: + # Upload entire repository + path: 'docs/.vuepress/dist' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v3