Skip to content

Commit 34e18dd

Browse files
committed
GitHub Workflow 업데이트
- gh-pages branch 대신 artifcat upload로 변경
1 parent e669c94 commit 34e18dd

File tree

2 files changed

+22
-66
lines changed

2 files changed

+22
-66
lines changed

.github/workflows/deploy-www.yml

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ on:
77
schedule:
88
- cron: '0 18 * * *'
99

10+
permissions:
11+
contents: read
12+
pages: write
13+
id-token: write
14+
15+
concurrency:
16+
group: "pages"
17+
cancel-in-progress: false
18+
1019
jobs:
1120
build:
1221
runs-on: ubuntu-latest
@@ -44,15 +53,16 @@ jobs:
4453
JEKYLL_GITHUB_TOKEN: ${{ secrets.JEKYLL_GITHUB_TOKEN }}
4554
run: |
4655
make build_deploy
47-
- name: Deploy Jekyll site
48-
run: |
49-
git config --global user.name "GitHub Action"
50-
git config --global user.email "reserve.dev@gmail.com"
51-
export remote_repo="https://x-access-token:${{ secrets.DEPLOY_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
52-
export remote_branch="gh-pages"
53-
cd _site/
54-
git init
55-
git add .
56-
git commit -m "Rebuild"
57-
git push --force $remote_repo master:$remote_branch > /dev/null 2>&1
58-
echo "Done"
56+
- name: Upload artifact
57+
uses: actions/upload-pages-artifact@v3
58+
59+
deploy:
60+
environment:
61+
name: github-pages
62+
url: ${{ steps.deployment.outputs.page_url }}
63+
runs-on: ubuntu-latest
64+
needs: build
65+
steps:
66+
- name: Deploy to GitHub Pages
67+
id: deployment
68+
uses: actions/deploy-pages@v4

.github/workflows/deploy.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)