We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82e6314 commit b8deaf4Copy full SHA for b8deaf4
.github/workflows/build-and-deploy.yml
@@ -63,4 +63,26 @@ jobs:
63
path: _site/
64
retention-days: 7
65
66
- # TODO: masterへのpushもしくはcron実行のときだけ、GitHub Pagesへアップロードする
+ # Upload a site to GitHub Pages
67
+ deploy:
68
+ needs:
69
+ - build
70
+ environment:
71
+ name: github-pages
72
+ url: ${{ steps.deployment.outputs.page_url }}
73
+ runs-on: ubuntu-22.04
74
+ permissions:
75
+ contents: read
76
+ pages: write
77
+ id-token: write
78
+ # FIXME: cronによる実行の時もアップロードを実行する
79
+ if: github.ref == 'refs/heads/master'
80
+ steps:
81
+ - name: Deploy to Github Pages
82
+ id: deployment
83
+ uses: actions/deploy-pages@v4
84
+
85
+ # TODO: レポジトリ側の設定:
86
+ #
87
+ # * Actionsを使うこと
88
+ # * page write パーミッション
0 commit comments