67 lines
1.7 KiB
YAML
67 lines
1.7 KiB
YAML
name: 🚀 Release
|
|
|
|
on:
|
|
push:
|
|
branches: ["*"]
|
|
|
|
env:
|
|
PNPM_CACHE_FOLDER: ~/.pnpm-store
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
container: jimfx/nodes:latest
|
|
|
|
steps:
|
|
- name: 🔍 Debug Information
|
|
run: |
|
|
echo "GITHUB_REF: ${{ github.ref }}"
|
|
echo "GITHUB_REF_TYPE: ${{ github.ref_type }}"
|
|
echo "GITHUB_REF_NAME: ${{ github.ref_name }}"
|
|
echo "GITHUB_SHA: ${{ github.sha }}"
|
|
echo "GITHUB_EVENT_NAME: ${{ github.event_name }}"
|
|
echo "GITHUB_ACTOR: ${{ github.actor }}"
|
|
|
|
- name: 📑 Checkout Code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: 💾 Setup pnpm Cache
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ${{ env.PNPM_CACHE_FOLDER }}
|
|
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-pnpm-
|
|
|
|
- name: 📦 Install Dependencies
|
|
run: pnpm install --frozen-lockfile --store-dir ${{ env.PNPM_CACHE_FOLDER }}
|
|
|
|
- name: 🧹 Lint
|
|
run: pnpm lint
|
|
|
|
- name: 🎨 Format Check
|
|
run: pnpm format:check
|
|
|
|
- name: 🧬 Type Check
|
|
run: pnpm check
|
|
|
|
- name: 🛠️ Build
|
|
run: pnpm build:deploy
|
|
|
|
- name: 🚀 Create Release Commit
|
|
if: github.ref_type == 'tag'
|
|
run: ./.gitea/scripts/create-release.sh
|
|
|
|
- name: 🏷️ Create Gitea Release
|
|
if: github.ref_type == 'tag'
|
|
uses: akkuman/gitea-release-action@v1
|
|
with:
|
|
tag_name: ${{ github.ref_name }}
|
|
release_name: Release ${{ github.ref_name }}
|
|
body_path: CHANGELOG.md
|
|
draft: false
|
|
prerelease: false
|