Skip to content

Commit

Permalink
ci: deploy to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
teidesu committed May 11, 2024
1 parent e7b7881 commit 13b2b69
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Deploy to Pages

on:
push:

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

View workflow job for this annotation

GitHub Actions / build

Expected indentation of 4 spaces but found 2 spaces
branches: [master]

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

View workflow job for this annotation

GitHub Actions / build

Expected indentation of 8 spaces but found 4 spaces
workflow_dispatch:

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

View workflow job for this annotation

GitHub Actions / build

Expected indentation of 4 spaces but found 2 spaces

permissions:
contents: read

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

View workflow job for this annotation

GitHub Actions / build

Expected indentation of 4 spaces but found 2 spaces
pages: write

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

View workflow job for this annotation

GitHub Actions / build

Expected indentation of 4 spaces but found 2 spaces
id-token: write

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

View workflow job for this annotation

GitHub Actions / build

Expected indentation of 4 spaces but found 2 spaces

concurrency:
group: pages

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

View workflow job for this annotation

GitHub Actions / build

Expected indentation of 4 spaces but found 2 spaces
cancel-in-progress: false

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

View workflow job for this annotation

GitHub Actions / build

Expected indentation of 4 spaces but found 2 spaces

jobs:
build:

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

View workflow job for this annotation

GitHub Actions / build

Expected indentation of 4 spaces but found 2 spaces
runs-on: ubuntu-latest

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

View workflow job for this annotation

GitHub Actions / build

Expected indentation of 8 spaces but found 4 spaces
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 9
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20
cache: pnpm
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: |
pnpm build
touch dist/.nojekyll
echo xtonix.tei.su > dist/CNAME
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: 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@v2

0 comments on commit 13b2b69

Please sign in to comment.