Skip to content

ci(website): fix pulling down mdbook-alerts (#137) #106

ci(website): fix pulling down mdbook-alerts (#137)

ci(website): fix pulling down mdbook-alerts (#137) #106

Workflow file for this run

name: release
on:
workflow_dispatch:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
steps:
- uses: googleapis/release-please-action@v4
id: release
build:
needs: ["release-please"]
if: needs.release-please.outputs.release_created
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup PNPM
uses: pnpm/action-setup@v3
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
- name: Upload Artifacts to Release
run: gh release upload ${{ needs.release-please.outputs.tag_name }} dist/*.css
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}