Skip to content

Commit

Permalink
🔧 Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rayriffy committed Dec 12, 2019
1 parent 59fd48e commit 4f4c76b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 47 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,22 @@ jobs:
restore-keys: |
${{ runner.OS }}-node-${{ env.cache-name }}-
${{ runner.OS }}-node-
- name: "Cache: Gatsby builds"
- name: "Cache: Gatsby .cache/"
uses: actions/cache@v1
with:
path: .cache
key: ${{ runner.OS }}-rayriffy-h-${{ hashFiles('src/contents/database/codes.js') }}
key: ${{ runner.OS }}-rayriffy-h-cache-${{ hashFiles('src/contents/database/codes.js') }}
restore-keys: |
${{ runner.OS }}-rayriffy-h-${{ hashFiles('src/contents/database/codes.js') }}
${{ runner.OS }}-rayriffy-h-
${{ runner.OS }}-rayriffy-h-cache-${{ hashFiles('src/contents/database/codes.js') }}
${{ runner.OS }}-rayriffy-h-cache-
- name: "Cache: Gatsby public/"
uses: actions/cache@v1
with:
path: .cache
key: ${{ runner.OS }}-rayriffy-h-public-${{ hashFiles('src/contents/database/codes.js') }}
restore-keys: |
${{ runner.OS }}-rayriffy-h-public-${{ hashFiles('src/contents/database/codes.js') }}
${{ runner.OS }}-rayriffy-h-public-
- name: 'Init: Install yarn'
run: |
curl -o- -L https://yarnpkg.com/install.sh | bash
Expand Down
43 changes: 0 additions & 43 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,46 +34,3 @@ jobs:
- name: 'Test: Code linting'
run: |
yarn test:lint
deploy:
needs: test
runs-on: macOS-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v1
- name: 'Init: Summon NodeJS'
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: "Cache: node_modules"
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-node-${{ env.cache-name }}-
${{ runner.OS }}-node-
- name: "Cache: Gatsby builds"
uses: actions/cache@v1
with:
path: .cache
key: ${{ runner.OS }}-rayriffy-h-gatsby-${{ hashFiles('src/contents/database/codes.js') }}
restore-keys: |
${{ runner.OS }}-rayriffy-h-gatsby-${{ hashFiles('src/contents/database/codes.js') }}
${{ runner.OS }}-rayriffy-h-gatsby-
- name: 'Init: Install yarn'
run: |
curl -o- -L https://yarnpkg.com/install.sh | bash
- name: 'Init: Install dependencies'
run: |
yarn install
- name: "Build: Trigger build site"
run: |
yarn build
- name: "Deploy: Upload to Netlify"
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
run: |
yarn deploy --message "Automatic deployment from GitHub Actions"

0 comments on commit 4f4c76b

Please sign in to comment.