diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 2ed14d2..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,2 +0,0 @@ -github: gcushen -custom: https://hugoblox.com/sponsor/ diff --git a/.github/workflows/import-publications.yml b/.github/workflows/import-publications.yml deleted file mode 100644 index d45ea67..0000000 --- a/.github/workflows/import-publications.yml +++ /dev/null @@ -1,57 +0,0 @@ -# Hugo Blox GitHub Action to convert Bibtex publications to Markdown-based webpages -name: Import Publications From Bibtex - -# Require permission to create a PR -permissions: - contents: write - pull-requests: write - -# Run workflow when a `.bib` file is added or updated in the `data/` folder -on: - push: - branches: ['main'] - paths: ['publications.bib'] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -jobs: - hugoblox: - if: github.repository_owner != 'HugoBlox' - runs-on: ubuntu-latest - steps: - - name: Checkout the repo - uses: actions/checkout@v4 - - name: Set up Python 3.12 - uses: actions/setup-python@v5 - with: - python-version: "3.12" - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install academic==0.11.2 - - name: Run Academic (Bibtex To Markdown Converter) - # Check `.bib` file exists for case when action runs on `.bib` deletion - # Note GH only provides hashFiles func in `steps.if` context, not `jobs.if` context - if: ${{ hashFiles('publications.bib') != '' }} - run: academic import publications.bib content/publication/ --compact - - name: Create Pull Request - # Set ID for `Check outputs` stage - id: cpr - uses: peter-evans/create-pull-request@v6 - with: - commit-message: 'content: import publications from Bibtex' - title: Hugo Blox Builder - Import latest publications - body: | - Import the latest publications from `publications.bib` to `content/publication/`. - 将最新的出版物从`publications.bib`导入到`content/publication/`。 - [View Documentation](https://github.com/GetRD/academic-file-converter) - base: main - labels: automated-pr, content - branch: hugoblox-import-publications - delete-branch: true - - name: Check outputs - if: ${{ steps.cpr.outputs.pull-request-number }} - run: | - echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" - echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" \ No newline at end of file diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml deleted file mode 100644 index 2d23b9f..0000000 --- a/.github/workflows/publish.yaml +++ /dev/null @@ -1,70 +0,0 @@ -name: Deploy website to GitHub Pages - -env: - WC_HUGO_VERSION: '0.124.1' - -on: - # Trigger the workflow every time you push to the `main` branch - push: - branches: ["main"] - # Allows you to run this workflow manually from the Actions tab on GitHub. - workflow_dispatch: - -# Provide permission to clone the repo and deploy it to GitHub Pages -permissions: - contents: read - pages: write - id-token: write - -concurrency: - group: "pages" - cancel-in-progress: false - -jobs: - # Build website - build: - if: github.repository_owner != 'HugoBlox' - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - # Fetch history for Hugo's .GitInfo and .Lastmod - fetch-depth: 0 - - name: Setup Hugo - uses: peaceiris/actions-hugo@v3 - with: - hugo-version: ${{ env.WC_HUGO_VERSION }} - extended: true - - uses: actions/cache@v4 - with: - path: /tmp/hugo_cache_runner/ - key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.mod') }} - restore-keys: | - ${{ runner.os }}-hugomod- - - name: Setup Pages - id: pages - uses: actions/configure-pages@v5 - - name: Build with Hugo - env: - HUGO_ENVIRONMENT: production - run: | - echo "Hugo Cache Dir: $(hugo config | grep cachedir)" - hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/" - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - path: ./public - - # Deploy website to GitHub Pages hosting - deploy: - if: github.repository_owner != 'HugoBlox' - 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 \ No newline at end of file diff --git a/.github/workflows/updater-wip.yml b/.github/workflows/updater-wip.yml deleted file mode 100644 index 43aacf1..0000000 --- a/.github/workflows/updater-wip.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Updater (WIP) - -on: - schedule: - - cron: 0 0 * * 0 - # Allows you to run this workflow manually from the Actions tab on GitHub. - workflow_dispatch: - -# Provide permission to clone the repo and deploy it to GitHub Pages -permissions: - contents: write - -jobs: - update: - if: github.repository_owner == 'HugoBlox' - runs-on: ubuntu-latest - steps: - - uses: HugoBlox/gh-action-updater@v1 - with: - feed-url: https://hugoblox.com/rss.xml - readme-section: news - branch: main