Skip to content

Update deploy-json.yml #18

Update deploy-json.yml

Update deploy-json.yml #18

Workflow file for this run

name: Deploy json api
on: [push]
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Maven
run:
mvn clean compile exec:java
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.3.3
with:
token: ${{ secrets.JSON_API_TOKEN }}
branch: master # The branch the action should deploy to.
folder: ./output/json/ # The folder the action should deploy.
repository-name: riff-nz/api
- name: Reload
run: curl http://www.riff.nz/reload