Skip to content

Commit 1e82994

Browse files
committed
chore: add workflow to deploy the website
1 parent 236b55f commit 1e82994

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/static.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Deploy to `workshop.scala-lang.org`
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions/upload-pages-artifact@v3
12+
with:
13+
path: "${{ github.workspace }}"
14+
15+
deploy:
16+
runs-on: ubuntu-latest
17+
needs: build
18+
permissions:
19+
pages: write # to deploy to Pages
20+
id-token: write # to verify the deployment originates from an appropriate source
21+
environment:
22+
name: github-pages
23+
url: "${{ steps.deployment.outputs.page_url }}"
24+
steps:
25+
- name: Deploy to GitHub Pages
26+
id: deployment
27+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)