Skip to content

Commit b3691cd

Browse files
committed
actions update
1 parent 0efd006 commit b3691cd

File tree

1 file changed

+3
-31
lines changed

1 file changed

+3
-31
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
name: Deploy to GitHub Pages
2-
3-
on:
4-
# Trigger the workflow every time you push to the `main` branch
5-
# Using a different branch name? Replace `main` with your branch’s name
6-
push:
7-
branches: [docs-site]
8-
# Allows you to run this workflow manually from the Actions tab on GitHub.
9-
workflow_dispatch:
10-
11-
# Allow this job to clone the repo and create a page deployment
12-
permissions:
13-
contents: read
14-
pages: write
15-
id-token: write
16-
171
jobs:
182
build:
193
runs-on: ubuntu-latest
@@ -22,18 +6,6 @@ jobs:
226
uses: actions/checkout@v4
237
- name: Install, build, and upload your site
248
uses: withastro/action@v3
25-
# with:
26-
# path: . # The root location of your Astro project inside the repository. (optional)
27-
# node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 20. (optional)
28-
# package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
29-
30-
deploy:
31-
needs: build
32-
runs-on: ubuntu-latest
33-
environment:
34-
name: github-pages
35-
url: ${{ steps.deployment.outputs.page_url }}
36-
steps:
37-
- name: Deploy to GitHub Pages
38-
id: deployment
39-
uses: actions/deploy-pages@v4
9+
- name: Add .nojekyll
10+
run: touch ./dist/.nojekyll # Adjust "dist" if your output dir is different
11+
# If your output is not "dist", change it to your actual build output directory

0 commit comments

Comments
 (0)