Skip to content

Commit ea4bf70

Browse files
committed
update deno.yml
1 parent 85fac8d commit ea4bf70

File tree

1 file changed

+36
-8
lines changed

1 file changed

+36
-8
lines changed

.github/workflows/deno.yml

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
1-
# This is a basic workflow to help you get started with Actions
1+
# Simple workflow for deploying static content to GitHub Pages
2+
name: Build and Deploy
23

3-
name: CI
4-
5-
# Controls when the workflow will run
64
on:
5+
# Runs on pushes targeting the default branch
76
push:
8-
branches: [ "release" ]
9-
pull_request:
10-
branches: [ "release" ]
7+
branches: ["release"]
118

129
# Allows you to run this workflow manually from the Actions tab
1310
workflow_dispatch:
1411

15-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20+
concurrency:
21+
group: "pages"
22+
cancel-in-progress: false
23+
1624
jobs:
1725
# This workflow contains a single job called "build"
1826
build:
@@ -32,3 +40,23 @@ jobs:
3240
# Runs a single command using the runners shell
3341
- name: Run a one-line script
3442
run: deno task build
43+
44+
# Single deploy job since we're just deploying
45+
deploy:
46+
environment:
47+
name: github-pages
48+
url: ${{ steps.deployment.outputs.page_url }}
49+
runs-on: ubuntu-latest
50+
steps:
51+
- name: Checkout
52+
uses: actions/checkout@v4
53+
- name: Setup Pages
54+
uses: actions/configure-pages@v4
55+
- name: Upload artifact
56+
uses: actions/upload-pages-artifact@v3
57+
with:
58+
# Upload entire repository
59+
path: "."
60+
- name: Deploy to GitHub Pages
61+
id: deployment
62+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)