Cache mcdata registries

This commit is contained in:
Misode
2020-11-06 02:53:32 +01:00
parent c9165df29e
commit 9e49555be3
3 changed files with 43 additions and 4 deletions

View File

@@ -12,10 +12,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v1
- name: Get latest mcdata commit hash
uses: octokit/request-action@v2.x
id: get_mcdata_hash
with:
route: GET /repos/Arcensoth/mcdata/branches/master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: |
npm install
npm run build
"npm run build -- --env.hash=${{ steps.get_mcdata_hash.outputs.data.commit.sha }}"
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3