Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

Commit

Permalink
Refactor workflows and build pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansuhartanto committed Jun 12, 2024
1 parent 792247c commit d4101a3
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
name: Publish
name: Pages

on:
push:
branches: [ main ]

permissions:
pages: write
id-token: write
push: {}

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: oven-sh/setup-bun@v1
with:
deno-version: v1.x
bun-version: latest

- run: bun install
- run: bun run build
Expand All @@ -29,10 +23,12 @@ jobs:
path: "dist/"

deploy:
needs: build

runs-on: ubuntu-latest

steps:
- id: deployment
uses: actions/deploy-pages@v4
needs: build
if: github.ref_name == github.event.repository.default_branch
permissions:
pages: write
id-token: write
runs-on: ubuntu-latest
steps:
- id: deployment
uses: actions/deploy-pages@v4

0 comments on commit d4101a3

Please sign in to comment.