-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ouyang Chunhui <[email protected]>
- Loading branch information
1 parent
deac1c6
commit e204ad4
Showing
22,458 changed files
with
36 additions
and
1,021,323 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Hexo automatic deployment | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
hexo_deploy: | ||
name: Grav automatic deployment | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.17.0 | ||
- name: LXD deployment environment initialization | ||
run: | | ||
sudo snap install lxd | ||
sudo lxd init --auto | ||
sudo lxc remote add deploy direct.qhjack.top --password ${{secrets.LXD_PASSWORD}} --accept-certificate | ||
sudo lxc remote switch deploy | ||
- name: clear LXD cache | ||
run: | | ||
sudo lxc exec qhjack /usr/bin/clean_qhjack_web.fish | ||
- name: Upload files to LXD on direct.qhjack.top | ||
run: | | ||
mkdir -p ../public/qhjack | ||
cp -r * ../public/qhjack | ||
sudo lxc file push -p -r ../public/qhjack qhjack/var/www/ | ||
- name: Autorun SelfUpgrade | ||
run: | | ||
sudo lxc exec qhjack /var/www/qhjack/bin/auto-upgrade.fish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
67830e6b98c4f20cf2dcecfec99fd5e3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/usr/bin/env fish | ||
/var/www/qhjack/bin/gpm selfupgrade -f -y |
Oops, something went wrong.