Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Releases page #575

Merged
merged 25 commits into from
Dec 19, 2024
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ci: added release notes generator
mehulmathur16 committed Dec 11, 2024
commit 8ca8d7ba176ad5862f5ecf5d42a8ba6680502aa1
36 changes: 36 additions & 0 deletions .github/workflows/update-releases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Update Releases

on:
push:
branches:
- "**"

permissions:
contents: write

jobs:
update-releases:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- name: Run Releases Docs Generator Script
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: node releases-docs-generator.js

- name: Auto Commit Changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: ${{ github.ref_name }}
commit_author: Author <[email protected]>
commit_message: "chore: updated releases"
2 changes: 1 addition & 1 deletion releases-docs-generator.js
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ const axios = require("axios")
const fs = require("fs")
const path = require("path")

const GITHUB_TOKEN = ""
const GITHUB_TOKEN = process.env.GITHUB_TOKEN
const REPO_OWNER = "tailcallhq"
const REPO_NAME = "tailcall"

6 changes: 3 additions & 3 deletions src/components/shared/VersionUpdateCard.tsx
Original file line number Diff line number Diff line change
@@ -5,12 +5,12 @@ import {Theme} from "@site/src/constants"

const VersionUpdateCard = () => {
return (
<div className="flex py-8 px-11 rounded-2xl bg-tailCall-dark-600 justify-between items-center">
<div className="flex flex-col sm:flex-row py-8 px-6 sm:px-11 rounded-2xl bg-tailCall-dark-600 justify-between items-start sm:items-center gap-4 version-update-card">
<div className="flex flex-col gap-1">
<span className="text-title-large text-white">Update to latest version !!</span>
<span className="text-title-medium sm:text-title-large text-white">Update to latest version !!</span>
<span className="text-content-small text-tailCall-light-500">Get the instructions from the docs</span>
</div>
<LinkButton title="Get Started" href={pageLinks.introduction} theme={Theme.Tailcall} />
<LinkButton title="Get Started" href={pageLinks.docs} theme={Theme.Tailcall} />
</div>
)
}
8 changes: 8 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
@@ -808,3 +808,11 @@ span.token.tag.script.language-javascript {
padding-bottom: var(--ifm-navbar-height);
top: 2rem;
}

.version-update-card {
background-color: #121212;
background-image: linear-gradient(90deg, #545556 0.5px, transparent 0.5px),
linear-gradient(#545556 0.5px, transparent 0.5px);
background-size: 60px 60px;
background-position: 3px 23px;
}
Loading