Skip to content

initial commit (#1)

initial commit (#1) #3

Workflow file for this run

name: Adder of Time - CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: arduino/setup-task@v2
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- uses: baptiste0928/cargo-install@v3
with:
crate: dprint
- uses: oven-sh/setup-bun@v1
- run: bun install --frozon-lockfile
- run: task check
- run: task test
- run: task build
- uses: actions/upload-pages-artifact@v3
with:
path: dist
retention-days: 3
deploy:
name: Deploy
needs: [build]
if: github.event_name != 'pull_request'
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- id: deployment
uses: actions/deploy-pages@v4