summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/deploy.yaml50
-rw-r--r--.github/workflows/format.yaml31
2 files changed, 56 insertions, 25 deletions
diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml
index b79089c..34a8c38 100644
--- a/.github/workflows/deploy.yaml
+++ b/.github/workflows/deploy.yaml
@@ -1,38 +1,38 @@
name: deploy to gh pages
on:
- push:
- branches: [main]
- workflow_dispatch:
+ push:
+ branches: [main]
+ workflow_dispatch:
permissions:
- contents: read
- pages: write
- id-token: write
+ contents: read
+ pages: write
+ id-token: write
jobs:
- build:
- runs-on: ubuntu-latest
+ build:
+ runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
+ steps:
+ - uses: actions/checkout@v3
- - name: setup deno
- uses: denoland/setup-deno@v1
- with:
- deno-version: v1.31.3
+ - name: setup deno
+ uses: denoland/setup-deno@v1
+ with:
+ deno-version: v1.31.3
- - name: build site
- run: deno task build
+ - name: build site
+ run: deno task build
- - name: setup pages
- uses: actions/configure-pages@v3
+ - name: setup pages
+ uses: actions/configure-pages@v3
- - name: upload artifact
- uses: actions/upload-pages-artifact@v1
- with:
- path: '_site'
+ - name: upload artifact
+ uses: actions/upload-pages-artifact@v1
+ with:
+ path: "_site"
- - name: deploy
- id: deployment
- uses: actions/deploy-pages@v1
+ - name: deploy
+ id: deployment
+ uses: actions/deploy-pages@v1
diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml
new file mode 100644
index 0000000..4b96fb3
--- /dev/null
+++ b/.github/workflows/format.yaml
@@ -0,0 +1,31 @@
+name: format
+
+on:
+ pull_request:
+ branches: [main]
+ push:
+ branches: [main]
+
+jobs:
+ format:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: checkout repository
+ uses: actions/checkout@v3
+
+ - name: setup node
+ uses: actions/setup-node@v3
+
+ - name: install prettier
+ run: |
+ npm install -g prettier
+
+ - name: format
+ run: prettier --editorconfig -w .
+
+ - name: add and commit
+ uses: EndBug/add-and-commit@v9
+ with:
+ default_author: github_actions
+ message: "chore: format with prettier"