# 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: [master] # 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 # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. concurrency: group: pages cancel-in-progress: false jobs: # Build job build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 with: fetch-depth: 0 # Not needed if lastUpdated is not enabled # - uses: pnpm/action-setup@v2 # Uncomment this if you're using pnpm # - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun - name: Setup Node uses: actions/setup-node@v3 with: node-version: 18 cache: npm # or pnpm / yarn - name: Setup Pages uses: actions/configure-pages@v3 - name: Install dependencies run: npm ci # or pnpm install / yarn install / bun install - name: Build with VitePress run: | npm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build touch docs/.vitepress/dist/.nojekyll - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: path: docs/.vitepress/dist # Deployment job 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@v2
Standard input is empty
Main.java:1: error: illegal character: '#' # Sample workflow for building and deploying a VitePress site to GitHub Pages ^ Main.java:1: error: class, interface, or enum expected # Sample workflow for building and deploying a VitePress site to GitHub Pages ^ Main.java:2: error: illegal character: '#' # ^ Main.java:6: error: illegal character: '#' # Runs on pushes targeting the `main` branch. Change this to `master` if you're ^ Main.java:6: error: illegal character: '`' # Runs on pushes targeting the `main` branch. Change this to `master` if you're ^ Main.java:6: error: illegal character: '`' # Runs on pushes targeting the `main` branch. Change this to `master` if you're ^ Main.java:6: error: illegal character: '`' # Runs on pushes targeting the `main` branch. Change this to `master` if you're ^ Main.java:6: error: illegal character: '`' # Runs on pushes targeting the `main` branch. Change this to `master` if you're ^ Main.java:6: error: unclosed character literal # Runs on pushes targeting the `main` branch. Change this to `master` if you're ^ Main.java:7: error: illegal character: '#' # using the `master` branch as the default branch. ^ Main.java:7: error: illegal character: '`' # using the `master` branch as the default branch. ^ Main.java:7: error: illegal character: '`' # using the `master` branch as the default branch. ^ Main.java:11: error: illegal character: '#' # Allows you to run this workflow manually from the Actions tab ^ Main.java:14: error: illegal character: '#' # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages ^ Main.java:20: error: illegal character: '#' # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. ^ Main.java:21: error: illegal character: '#' # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. ^ Main.java:27: error: illegal character: '#' # Build job ^ Main.java:33: error: class, interface, or enum expected with: ^ Main.java:34: error: illegal character: '#' fetch-depth: 0 # Not needed if lastUpdated is not enabled ^ Main.java:35: error: illegal character: '#' # - uses: pnpm/action-setup@v2 # Uncomment this if you're using pnpm ^ Main.java:35: error: illegal character: '#' # - uses: pnpm/action-setup@v2 # Uncomment this if you're using pnpm ^ Main.java:35: error: class, interface, or enum expected # - uses: pnpm/action-setup@v2 # Uncomment this if you're using pnpm ^ Main.java:35: error: unclosed character literal # - uses: pnpm/action-setup@v2 # Uncomment this if you're using pnpm ^ Main.java:36: error: illegal character: '#' # - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun ^ Main.java:36: error: illegal character: '#' # - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun ^ Main.java:36: error: class, interface, or enum expected # - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun ^ Main.java:36: error: unclosed character literal # - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun ^ Main.java:39: error: class, interface, or enum expected with: ^ Main.java:41: error: illegal character: '#' cache: npm # or pnpm / yarn ^ Main.java:44: error: class, interface, or enum expected - name: Install dependencies ^ Main.java:45: error: illegal character: '#' run: npm ci # or pnpm install / yarn install / bun install ^ Main.java:48: error: illegal character: '#' npm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build ^ Main.java:52: error: class, interface, or enum expected with: ^ Main.java:55: error: illegal character: '#' # Deployment job ^ Main.java:66: error: reached end of file while parsing uses: actions/deploy-pages@v2 ^ 35 errors
Standard output is empty