CI #6
1 changed files with 13 additions and 2 deletions
|
|
@ -10,13 +10,24 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: oven/bun:1
|
container: oven/bun:1
|
||||||
|
outputs:
|
||||||
|
artifact_name: ${{ steps.meta.outputs.name }}
|
||||||
steps:
|
steps:
|
||||||
- name: Install git
|
- name: Install git and node
|
||||||
run: apt-get update && apt-get install -y git nodejs
|
run: apt-get update && apt-get install -y git nodejs
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set artifact name
|
||||||
|
id: meta
|
||||||
|
run: |
|
||||||
|
if [[ "${{ github.ref_type }}" == "tag" ]]; then
|
||||||
|
tag="${GITHUB_REF_NAME#v}"
|
||||||
|
else
|
||||||
|
tag="$(date -u +%Y%m%d)"
|
||||||
|
fi
|
||||||
|
echo "name=nychthemeron_${tag}" >> "$GITHUB_OUTPUT"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: bun install --frozen-lockfile
|
run: bun install --frozen-lockfile
|
||||||
|
|
||||||
|
|
@ -30,7 +41,7 @@ jobs:
|
||||||
run: bun run type-check -- --force
|
run: bun run type-check -- --force
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: bun run build-only
|
run: bun run build
|
||||||
|
|
||||||
- name: Upload dist
|
- name: Upload dist
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue