Skip to content

Update and rename .env.example to .env #1

Update and rename .env.example to .env

Update and rename .env.example to .env #1

Workflow file for this run

name: Build and Release
on:
push:
branches:
- main
jobs:
build:
name: Build Project
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the code
- name: Checkout code
uses: actions/checkout@v3
# Step 2: Set up Node.js
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
# Step 3: Install dependencies
- name: Install dependencies
run: npm ci
# Step 4: Build the project
- name: Build project
run: npm run build
# Step 4.5: Verify build output
- name: List build directory
run: ls -al build/
# Step 5: Create and push a version tag
- name: Create GitHub tag
id: create_tag
run: |
TAG_NAME="v0.9.4.${{ github.run_number }}"
git tag $TAG_NAME
git push origin $TAG_NAME
echo "::set-output name=tag_name::$TAG_NAME"
# Step 6: Generate release notes from commits
- name: Generate release notes
id: generate_notes
run: |
# Fetch the commit messages since the last tag
COMMITS=$(git log --oneline ${{ steps.create_tag.outputs.tag_name }}..HEAD)
echo "::set-output name=commits::$COMMITS"
# Step 7: Publish to GitHub Releases
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
files: build/**
tag_name: ${{ steps.create_tag.outputs.tag_name }}
release_name: "Version ${{ steps.create_tag.outputs.tag_name }}"
body: ${{ steps.generate_notes.outputs.commits }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}