Skip to content

Merge pull request #19 from code-with-amirhossein/amir78729-patch-20 #33

Merge pull request #19 from code-with-amirhossein/amir78729-patch-20

Merge pull request #19 from code-with-amirhossein/amir78729-patch-20 #33

Workflow file for this run

# Sample workflow for building and deploying a VitePress site to GitHub Pages
#
name: Deploy VitePress site to Pages
on:
# Runs on pushes targeting the `main` branch. Change this to `master` if you're
# using the `master` branch as the default branch.
push:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: "☁️ checkout repository"
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "🔧 setup pnpm"
uses: pnpm/action-setup@v3
with:
version: 9
- name: "🔧 setup node"
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: "🔧 setup pages"
uses: actions/configure-pages@v4
- name: "📦 install dependencies"
run: pnpm install
# Set up GitHub Actions caching for Wireit.
- name: "🔌 setup wireit cache"
uses: google/wireit@setup-github-actions-caching/v2
- name: "🧱 build docs"
run: pnpm docs:build
- name: "🗄️ upload pages artifact"
uses: actions/upload-pages-artifact@v3
with:
path: .vitepress/dist
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: "🚀 deploy to github pages"
id: deployment
uses: actions/deploy-pages@v4
announcement:
name: 📣 Announcement
needs: build
uses: ./.github/workflows/announcement.yml
with:
pr_title: ${{ github.event.head_commit.message }}
pr_number: ${{ needs.changesets.outputs.pr }}
pr_url:
https://github.com/${{ github.repository }}/pull/${{
needs.changesets.outputs.pr }}
pr_body: |
${{ github.event.head_commit.message }}
secrets:
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}

Check failure on line 92 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / Deploy VitePress site to Pages

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yml (Line: 92, Col: 23): Invalid secret, TELEGRAM_TOKEN is not defined in the referenced workflow. .github/workflows/deploy.yml (Line: 93, Col: 20): Invalid secret, TELEGRAM_TO is not defined in the referenced workflow.
TELEGRAM_TO: ${{ secrets.TELEGRAM_TO }}