File tree 1 file changed +23
-9
lines changed
1 file changed +23
-9
lines changed Original file line number Diff line number Diff line change 5
5
branches : [main]
6
6
7
7
jobs :
8
- gh-pages :
9
- runs-on : macOS -latest
8
+ build :
9
+ runs-on : ubuntu -latest
10
10
11
11
steps :
12
- - uses : actions/checkout@v1
13
-
12
+ - uses : actions/checkout@v4
13
+ - uses : swift-actions/setup-swift@v1
14
+ with :
15
+ swift-version : ' 5.9'
14
16
- run : swift run SwiftWasmBlog
15
-
16
- - name : Deploy
17
- uses : peaceiris/actions-gh-pages@v3
17
+ - uses : actions/upload-pages-artifact@v3
18
18
with :
19
- github_token : ${{ secrets.GITHUB_TOKEN }}
20
- publish_dir : ./Output
19
+ path : dist
20
+
21
+ deploy :
22
+ runs-on : ubuntu-latest
23
+ if : github.ref == 'refs/heads/main' && github.event_name == 'push'
24
+ needs : build
25
+ permissions :
26
+ pages : write
27
+ id-token : write
28
+
29
+ environment :
30
+ name : github-pages
31
+ url : ${{ steps.deployment.outputs.page_url }}
32
+ steps :
33
+ - uses : actions/deploy-pages@v4
34
+ id : deployment
You can’t perform that action at this time.
0 commit comments