Files
misode.github.io/.github/workflows/deploy.yml
Misode 623e38d98c Use mcmeta (#197)
* Simplify data fetching by using mcmeta

* Fetch sounds from mcmeta
2022-01-28 01:25:10 +01:00

32 lines
745 B
YAML

name: Deploy to GitHub Pages
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Get latest version
id: get_latest_version
run: |
echo ::set-output name=data::$(curl -s "https://raw.githubusercontent.com/misode/mcmeta/summary/version.json")
- name: Build
run: |
npm install
export latest_version="'${{ fromJson(steps.get_latest_version.outputs.data).commit.sha }}'"
npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: dist