Skip to content

 This project is dedicated to collecting high-quality macOS software and organizing them systematically by different categories for easy search and use.

Update workflows config.

jaywcjlovef5a5f593d4ff
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 3ba20b87..d717f090 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1,16 +1,33 @@
name: GitHub Actions Build and Deploy awesome-mac
-on: [push, pull_request]
+on:
+ push:
+ branches:
+ - master
jobs:
- build-and-deploy:
- runs-on: ubuntu-latest
+ build-deploy:
+ runs-on: ubuntu-18.04
steps:
- - name: Checkout
- uses: actions/checkout@master
+ - uses: actions/checkout@master
+
+ - name: Setup Node
+ uses: actions/setup-node@v1
+ with:
+ node-version: '10.x'
+
+ # - name: Cache dependencies
+ # uses: actions/cache@v1
+ # with:
+ # path: ~/.npm
+ # key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
+ # restore-keys: |
+ # ${{ runner.os }}-node-
+
+ - run: npm install
+ - run: npm run start
- name: Build and Deploy
- uses: JamesIves/github-pages-deploy-action@master
+ uses: peaceiris/[email protected]
env:
- ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
- BRANCH: gh-pages
- FOLDER: dist
- BUILD_SCRIPT: npm install && npm run start
\ No newline at end of file
+ ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
+ PUBLISH_BRANCH: gh-pages
+ PUBLISH_DIR: ./dist
\ No newline at end of file