Skip to content

Commit a23080d

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

File tree

2 files changed

+17
-66
lines changed

2 files changed

+17
-66
lines changed

.github/workflows/deploy-www.yml

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

10+
concurrency:
11+
group: "pages"
12+
cancel-in-progress: false
13+
1014
jobs:
1115
build:
1216
runs-on: ubuntu-latest
@@ -44,15 +48,16 @@ jobs:
4448
JEKYLL_GITHUB_TOKEN: ${{ secrets.JEKYLL_GITHUB_TOKEN }}
4549
run: |
4650
make build_deploy
47-
- name: Deploy Jekyll site
48-
run: |
49-
git config --global user.name "GitHub Action"
50-
git config --global user.email "[email protected]"
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"
51+
- name: Upload artifact
52+
uses: actions/upload-pages-artifact@v3
53+
54+
deploy:
55+
environment:
56+
name: github-pages
57+
url: ${{ steps.deployment.outputs.page_url }}
58+
runs-on: ubuntu-latest
59+
needs: build
60+
steps:
61+
- name: Deploy to GitHub Pages
62+
id: deployment
63+
uses: actions/deploy-pages@v4

.github/workflows/deploy.yml

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

0 commit comments

Comments
 (0)