tangled
alpha
login
or
join now
bwc9876.dev
/
website
0
fork
atom
Files for my website
bwc9876.dev
0
fork
atom
overview
issues
pulls
pipelines
Add Publish Workflow
bwc9876.dev
2 years ago
0b6a3edf
b2d63218
+31
1 changed file
expand all
collapse all
unified
split
.github
workflows
deploy.yml
+31
.github/workflows/deploy.yml
···
1
1
+
name: Deploy to GitHub Pages
2
2
+
3
3
+
on:
4
4
+
push:
5
5
+
branches: [main]
6
6
+
workflow_dispatch:
7
7
+
8
8
+
permissions:
9
9
+
contents: read
10
10
+
pages: write
11
11
+
id-token: write
12
12
+
13
13
+
jobs:
14
14
+
build:
15
15
+
runs-on: ubuntu-latest
16
16
+
steps:
17
17
+
- name: Checkout your repository using git
18
18
+
uses: actions/checkout@v3
19
19
+
- name: Install, build, and upload your site
20
20
+
uses: withastro/action@v0
21
21
+
22
22
+
deploy:
23
23
+
needs: build
24
24
+
runs-on: ubuntu-latest
25
25
+
environment:
26
26
+
name: github-pages
27
27
+
url: ${{ steps.deployment.outputs.page_url }}
28
28
+
steps:
29
29
+
- name: Deploy to GitHub Pages
30
30
+
id: deployment
31
31
+
uses: actions/deploy-pages@v1