From a60df590259ed0d4372a87f71cba492ceac56bdf Mon Sep 17 00:00:00 2001 From: Joshua T Kalis Date: Fri, 20 Sep 2024 16:04:41 -0400 Subject: [PATCH] update build pipeline --- .github/workflows/coverage.yml | 4 ++-- .github/workflows/publish.yml | 14 ++++---------- admin/build.sh | 2 +- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 5d33320..f1b4fd4 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -18,9 +18,9 @@ jobs: check: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: denoland/setup-deno@v1.1.1 + - uses: denoland/setup-deno@v1 with: deno-version: v1.x # Run with latest stable Deno. diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fbc3c89..06763df 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -29,9 +29,9 @@ jobs: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: denoland/setup-deno@v1.1.1 + - uses: denoland/setup-deno@v1 with: deno-version: v1.x # Run with latest stable Deno. @@ -41,18 +41,12 @@ jobs: - name: Build site files run: deno task build - - name: Compile CSS - uses: gha-utilities/sass-build@v0.5.1 - with: - source: styles/kalisjoshua.scss - destination: ./docs/css/kalisjoshua.css - - name: Create archive shell: bash run: tar --directory ./docs/ -cvf "$RUNNER_TEMP/artifact.tar" . - name: Upload artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: github-pages path: ${{ runner.temp }}/artifact.tar @@ -60,4 +54,4 @@ jobs: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v4 diff --git a/admin/build.sh b/admin/build.sh index e0fc498..e8cb175 100755 --- a/admin/build.sh +++ b/admin/build.sh @@ -3,7 +3,7 @@ source .env # clean out -rm -rf $PUB_DIR && mkdir $PUB_DIR && mkdir $PUB_DIR/css +rm -rf $PUB_DIR && mkdir $PUB_DIR # build pages deno run --allow-env --allow-read=./ --allow-write=$PUB_DIR ./sanguine/index.ts