Skip to content

fix: πŸ› Update prompt descriptions for clarity and consistency #107

fix: πŸ› Update prompt descriptions for clarity and consistency

fix: πŸ› Update prompt descriptions for clarity and consistency #107

Workflow file for this run

on:
push:
permissions:
contents: write
deployments: write
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
fetch-tags: true
# - uses: docker://gittools/gitversion
# id: version
# with:
# args: >-
# .
# /showvariable FullSemVer
# - run: echo "VERSION=${{steps.version.outputs.stdout}}" >> $GITHUB_ENV
- run: git config --global user.email "70216951+evilrubot@users.noreply.github.com"
- run: git config --global user.name "evilrubot"
- run: git remote set-url origin https://git:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v5
with:
node-version: 22
cache: pnpm
- run: pnpm install
- uses: Illbjorn/setup-task@0.1.0
- run: pip install reno git-cliff
- uses: pandoc/actions/setup@v1
- run: task $BUILD_TASK PUSH=$PUSH_FLAG
env:
BUILD_TASK: ${{ github.ref_name == 'main' && 'release' || 'build' }}
PUSH_FLAG: ${{ github.ref_name == 'main' && 'true' || 'false' }}
GH_TOKEN: ${{ github.token }}
- uses: actions/upload-artifact@v4
with:
path: .vitepress/dist
name: dist
retention-days: 7
# - uses: actions/cache@v4
# with:
# path: .vitepress/dist
# key: nc-build
deploy:
runs-on: ubuntu-22.04
environment:
name: ${{ github.ref_name == 'main' && 'production' || 'preview' }}
url: ${{ steps.deploy.outputs.pages-deployment-alias-url }}
needs: [build]
steps:
# TODO: add release step, and use reno output as release body (https://github.com/orhun/git-cliff-action)
- uses: actions/download-artifact@v5
with:
name: dist
- uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
command: pages deploy . --project-name=neoncode --branch ${{ github.ref_name }}