-
-
Notifications
You must be signed in to change notification settings - Fork 976
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
43 additions
and
36 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -36,8 +36,16 @@ jobs: | |
run: npm run build | ||
|
||
- name: Deploy | ||
uses: JamesIves/github-pages-deploy-action@4.0.0 | ||
uses: JamesIves/github-pages-deploy-action@4.1.1 | ||
with: | ||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | ||
BRANCH: gh-pages | ||
FOLDER: dist | ||
|
||
- name: Sync to Gitee | ||
uses: wearerequired/git-mirror-action@master | ||
env: | ||
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }} | ||
with: | ||
source-repo: [email protected]:doocs/md.git | ||
destination-repo: [email protected]:Doocs/md.git |
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,34 @@ | ||
name: Compress | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
paths: | ||
- "**.jpg" | ||
- "**.jpeg" | ||
- "**.png" | ||
- "**.webp" | ||
|
||
jobs: | ||
compress: | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'doocs/md' | ||
steps: | ||
- name: Checkout Branch | ||
uses: actions/checkout@v2 | ||
|
||
- name: Compress Images | ||
uses: calibreapp/image-actions@master | ||
with: | ||
githubToken: ${{ secrets.GITHUB_TOKEN }} | ||
compressOnly: true | ||
|
||
- name: Commit Files | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git commit -m "[Automated] Optimize images" -a | ||
- name: Push Changes | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.