Skip to content

Commit e9907de

Browse files
committed
update title and refine workflow
1 parent 0d5bc3a commit e9907de

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

.github/workflows/pages.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ on:
77
- rust
88

99
permissions:
10-
contents: write # for committing to gh-pages branch.
10+
contents: read
11+
pages: write
12+
id-token: write
1113

1214
jobs:
1315
build-github-pages:
@@ -38,10 +40,18 @@ jobs:
3840
run: trunk build --release --public-url $public_url
3941
env:
4042
public_url: "https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/"
41-
- name: Deploy
42-
uses: JamesIves/github-pages-deploy-action@v4
43+
- name: Upload artifact
44+
uses: actions/upload-pages-artifact@v3
4345
with:
44-
folder: crates/web_gui/dist
45-
# this option will not maintain any history of your previous pages deployment
46-
# set to false if you want all page build to be committed to your gh-pages branch history
47-
single-commit: true
46+
path: crates/web_gui/dist
47+
48+
deploy:
49+
environment:
50+
name: github-pages
51+
url: ${{ steps.deployment.outputs.page_url }}
52+
runs-on: ubuntu-latest
53+
needs: build
54+
steps:
55+
- name: Deploy to GitHub Pages
56+
id: deployment
57+
uses: actions/deploy-pages@v4

crates/web_gui/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8"/>
5-
<title>Hello World</title>
5+
<title>The Blockheads Save Editor</title>
66
<style>
77
html, body {
88
margin: 0;

0 commit comments

Comments
 (0)