From 817636270bc3de301c453772d0e22134c0764299 Mon Sep 17 00:00:00 2001 From: Jaeyoung Cho Date: Tue, 26 Nov 2024 13:01:48 +0100 Subject: [PATCH] clean workflows --- .github/workflows/jekyll-gh-pages.yml | 51 --------------------------- .github/workflows/publish.yaml | 6 ++-- .github/workflows/stale.yml | 34 ------------------ .github/workflows/static.yml | 43 ---------------------- 4 files changed, 4 insertions(+), 130 deletions(-) delete mode 100644 .github/workflows/jekyll-gh-pages.yml delete mode 100644 .github/workflows/stale.yml delete mode 100644 .github/workflows/static.yml diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll-gh-pages.yml deleted file mode 100644 index e31d81c58..000000000 --- a/.github/workflows/jekyll-gh-pages.yml +++ /dev/null @@ -1,51 +0,0 @@ -# Sample workflow for building and deploying a Jekyll site to GitHub Pages -name: Deploy Jekyll with GitHub Pages dependencies preinstalled - -on: - # Runs on pushes targeting the default branch - push: - branches: ["main"] - - # 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 - -jobs: - # Build job - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Setup Pages - uses: actions/configure-pages@v5 - - name: Build with Jekyll - uses: actions/jekyll-build-pages@v1 - with: - source: ./ - destination: ./_site - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - - # Deployment job - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 9faf21e3e..5e3d1c82b 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,7 +1,7 @@ name: Deploy website to GitHub Pages env: - WC_HUGO_VERSION: '0.97.3' + WC_HUGO_VERSION: '0.101.0' on: # Trigger the workflow every time you push to the `main` branch @@ -42,7 +42,9 @@ jobs: # Step 4: Run Custom Build Script - name: Run Build Script - run: ./scripts/view-starter-dev.sh "academic" + run: | + chmod +x ./scripts/view-starter-dev.sh + ./scripts/view-starter-dev.sh "academic" # Deploy website to GitHub Pages hosting deploy: diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml deleted file mode 100644 index 912ab4fd9..000000000 --- a/.github/workflows/stale.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: 'Close stale issues and PRs' -on: - schedule: - - cron: '30 1 * * *' - -jobs: - stale: - runs-on: ubuntu-latest - steps: - - uses: actions/stale@v3 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: | - This issue is stale because it has not had any recent activity. The resources of the project maintainers are limited, and so we are asking for your help. - - If this is a **bug** and you can still reproduce this error on the main branch, consider contributing a Pull Request with a fix. - - If this is a **feature request**, and you feel that it is still relevant and valuable, consider contributing a Pull Request for review. - - This issue will automatically close soon if no further activity occurs. Thank you for your contributions. - stale-pr-message: | - This PR is stale because it has not had any recent activity. The resources of the project maintainers are limited, and so we are asking for your help. - - If you feel that the PR is still relevant in the latest release, consider making the PR easier to review and finding developers to help review the PR. - - Please be _mindful_ that although we encourage PRs, we cannot expand the scope of the project in every possible direction. There will be requests that don't make the roadmap. - - This PR will automatically close soon if no further activity occurs. Thank you for your contributions. - days-before-stale: 30 - days-before-close: 5 - stale-issue-label: stale - stale-pr-label: stale - exempt-issue-labels: 'keep,enhancement,bug,documentation' - exempt-pr-labels: 'keep,enhancement,bug,documentation' diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml deleted file mode 100644 index f2c9e97c9..000000000 --- a/.github/workflows/static.yml +++ /dev/null @@ -1,43 +0,0 @@ -# Simple workflow for deploying static content to GitHub Pages -name: Deploy static content to Pages - -on: - # Runs on pushes targeting the default branch - push: - branches: ["main"] - - # 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 - -jobs: - # Single deploy job since we're just deploying - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Setup Pages - uses: actions/configure-pages@v5 - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - # Upload entire repository - path: '.' - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4