更新github link #157
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
name: Learn | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
env: | |
BUCKET: ${{ secrets.BUCKET }} | |
REGION: ${{ secrets.REGION }} | |
ACCESSKEYSECRET: ${{ secrets.ACCESSKEYSECRET }} | |
ACCESSKEYID: ${{ secrets.ACCESSKEYID }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
with: | |
node-version: 14 | |
- name: npm i | |
run: | | |
npm i | |
npx ts-node copyTheme.ts | |
npx hexo g | |
npx ts-node -T ./oss.ts | |
- name: Deploy | |
uses: JamesIves/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
branch: gh-pages # The branch the action should deploy to. | |
folder: public # The folder the action should deploy. |