Skip to content

Commit

Permalink
update build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
kalisjoshua committed Sep 20, 2024
1 parent 79d66dd commit a60df59
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -41,23 +41,17 @@ 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
retention-days: 1

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion admin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a60df59

Please sign in to comment.