Skip to content

fix

fix #5

Workflow file for this run

name: Deploy
on:
push:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build and Deploy
run: |
sh build.sh
cp -prvf build public
echo "User-agent: *" > public/robots.txt
echo "Allow: /" >> public/robots.txt
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: public
path: public
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2