更新下载链接
This commit is contained in:
1 parent
353d716902
commit
c266e86a12
1 file changed
+6
-15
@@ -14,27 +14,18 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- name: Checkout destination
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
if: github.ref == 'refs/heads/main'
|
|
||||||
with:
|
|
||||||
ref: gh-pages
|
|
||||||
path: built-site
|
|
||||||
|
|
||||||
- name: Setup Hugo
|
- name: Setup Hugo
|
||||||
run: |
|
run: |
|
||||||
curl -L -o /tmp/hugo.tar.gz 'https://github.com/gohugoio/hugo/releases/download/v0.110.0/hugo_extended_0.110.0_linux-amd64.tar.gz'
|
curl -L -o /tmp/hugo.tar.gz 'https://github.com/gohugoio/hugo/releases/download/v0.112.4/hugo_extended_0.110.0_linux-amd64.deb'
|
||||||
tar -C ${RUNNER_TEMP} -zxvf /tmp/hugo.tar.gz hugo
|
tar -C ${RUNNER_TEMP} -zxvf /tmp/hugo.tar.gz hugo
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: ${RUNNER_TEMP}/hugo
|
run: ${RUNNER_TEMP}/hugo
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
if: github.ref == 'refs/heads/main'
|
|
||||||
run: |
|
run: |
|
||||||
cp -R public/* ${GITHUB_WORKSPACE}/built-site/
|
git config --global user.name 'dhij'
|
||||||
cd ${GITHUB_WORKSPACE}/built-site
|
git config --global user.email 'davidhwang.ij@gmail.com'
|
||||||
git add .
|
git add -A
|
||||||
git config user.name 'dhij'
|
|
||||||
git config user.email 'davidhwang.ij@gmail.com'
|
|
||||||
git commit -m 'Updated site'
|
git commit -m 'Updated site'
|
||||||
git push
|
git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} main
|
||||||
Reference in new issue
Block a user