Skip to content

Commit 99b1f80

Browse files
committed
TEST: デプロイワークフローの更新
1 parent 32c03aa commit 99b1f80

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,24 @@ jobs:
1212
runs-on: ubuntu-latest
1313
if: github.ref == 'refs/heads/main'
1414
steps:
15-
- name: checkout
16-
uses: actions/checkout@v3.0.0
17-
- name: build_and_deploy
15+
- name: Checkout main
16+
uses: actions/checkout@v4
17+
- name: Build only
1818
uses: shalzz/[email protected]
1919
env:
20-
# Target branch
21-
PAGES_BRANCH: gh-pages
22-
TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
BUILD_DIR: public
21+
BUILD_ONLY: true
22+
- name: Upload artifact
23+
uses: actions/upload-pages-artifact@v2
24+
with:
25+
path: ./public
26+
deploy:
27+
environment:
28+
name: github-pages
29+
url: ${{ steps.deployment.outputs.page_url }}
30+
runs-on: ubuntu-latest
31+
needs: build
32+
steps:
33+
- name: Deploy to GitHub Pages
34+
id: deployment
35+
uses: actions/deploy-pages@v3

0 commit comments

Comments
 (0)