Skip to content

Commit

Permalink
chore: adjust ci files
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Meier <[email protected]>
  • Loading branch information
astromechza committed Jul 10, 2024
1 parent 0a9bdeb commit d86457b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 92 deletions.
31 changes: 4 additions & 27 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,24 @@
# Sample workflow for building and deploying a Hugo site to GitHub Pages
name: Deploy Hugo site 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
paths-ignore:
- README.md
- CONTRIBUTING.md
- CODE_OF_CONDUCT.md
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

# Default to bash
defaults:
run:
shell: bash

jobs:
# Build job
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.128.0
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set Node.js 20
uses: actions/setup-node@v4
with:
Expand All @@ -51,9 +33,6 @@ jobs:
id: pages
uses: actions/configure-pages@v5
- name: Build with Hugo
env:
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
HUGO_ENVIRONMENT: production
run: |
yarn run hugo \
--minify \
Expand All @@ -62,8 +41,6 @@ jobs:
uses: actions/upload-pages-artifact@v3
with:
path: ./public

# Deployment job
deploy:
environment:
name: github-pages
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ on:
branches: [ "*" ]
paths-ignore:
- README.md
- CONTRIBUTING.md
- CODE_OF_CONDUCT.md

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install -g yarn
- run: yarn install
- run: yarn run hugo
Expand Down
33 changes: 0 additions & 33 deletions .github/workflows/release-to-dev.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/release-to-prod.yml

This file was deleted.

0 comments on commit d86457b

Please sign in to comment.