-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2117ebf
commit d660597
Showing
12 changed files
with
12,966 additions
and
8,526 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,68 @@ | ||
name: Deploy to Github Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
|
||
workflow_dispatch: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
pages-changes: | ||
runs-on: ubuntu-latest | ||
pages-changes: | ||
runs-on: ubuntu-latest | ||
|
||
outputs: | ||
changed: ${{ contains(steps.changes.outputs.changes, 'not-api') && contains(steps.changes.outputs.changes, 'not-license') && contains(steps.changes.outputs.changes, 'not-readme') && contains(steps.changes.outputs.changes, 'not-vscode') }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Changes | ||
id: changes | ||
uses: dorny/paths-filter@v2 | ||
with: | ||
base: "main" | ||
# if a filter is false, it means that the only change matched it, so do not deploy | ||
filters: | | ||
not-license: '!LICENSE*' | ||
not-readme: '!**/README*' | ||
not-vscode: '!.vscode/**' | ||
outputs: | ||
changed: ${{ contains(steps.changes.outputs.changes, 'not-api') && contains(steps.changes.outputs.changes, 'not-license') && contains(steps.changes.outputs.changes, 'not-readme') && contains(steps.changes.outputs.changes, 'not-vscode') }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Changes | ||
id: changes | ||
uses: dorny/paths-filter@v2 | ||
with: | ||
base: 'main' | ||
# if a filter is false, it means that the only change matched it, so do not deploy | ||
filters: | | ||
not-license: '!LICENSE*' | ||
not-readme: '!**/README*' | ||
not-vscode: '!.vscode/**' | ||
build-pages: | ||
runs-on: ubuntu-latest | ||
needs: pages-changes | ||
if: ${{ needs.pages-changes.outputs.changed == 'true' }} | ||
build-pages: | ||
runs-on: ubuntu-latest | ||
needs: pages-changes | ||
if: ${{ needs.pages-changes.outputs.changed == 'true' }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v2.2.2 | ||
with: | ||
version: 8.15.3 | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "20" | ||
cache: "pnpm" | ||
- name: Build | ||
run: | | ||
pnpm i --frozen-lockfile | ||
pnpm build | ||
- name: Upload Artifact | ||
uses: actions/upload-pages-artifact@v1 | ||
with: | ||
path: dist/ | ||
retention-days: 2 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v2.2.2 | ||
with: | ||
version: 8.15.3 | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20' | ||
cache: 'pnpm' | ||
- name: Build | ||
run: | | ||
pnpm i --frozen-lockfile | ||
pnpm build | ||
- name: Upload Artifact | ||
uses: actions/upload-pages-artifact@v1 | ||
with: | ||
path: dist/ | ||
retention-days: 2 | ||
|
||
deploy-pages: | ||
runs-on: ubuntu-latest | ||
needs: [build-pages] | ||
if: ${{ !failure() && !cancelled() && needs.build-pages.result == 'success' }} | ||
permissions: | ||
pages: write # to deploy to Pages | ||
id-token: write # to verify the deployment originates from an appropriate source | ||
# Deploy to the github-pages environment | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v1 | ||
deploy-pages: | ||
runs-on: ubuntu-latest | ||
needs: [build-pages] | ||
if: ${{ !failure() && !cancelled() && needs.build-pages.result == 'success' }} | ||
permissions: | ||
pages: write # to deploy to Pages | ||
id-token: write # to verify the deployment originates from an appropriate source | ||
# Deploy to the github-pages environment | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pnpm-lock.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"recommendations": ["astro-build.astro-vscode"], | ||
"unwantedRecommendations": [] | ||
"recommendations": ["astro-build.astro-vscode"], | ||
"unwantedRecommendations": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"command": "./node_modules/.bin/astro dev", | ||
"name": "Development server", | ||
"request": "launch", | ||
"type": "node-terminal" | ||
} | ||
] | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"command": "./node_modules/.bin/astro dev", | ||
"name": "Development server", | ||
"request": "launch", | ||
"type": "node-terminal" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
"markdownlint.config": { | ||
"hard_tab": false | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.