Upload Static Assets to a Dark canvas
As a part of your GitHub Actions workflow, add a new step as follows:
name: Deploy
on:
push:
branches:
- master
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
# Build, transpile etc.
- name: Upload static assets to Dark canvas
uses: gregbrimble/[email protected]
with:
user: DARK_USERNAME_HERE
password: ${{ secrets.DARK_PASSWORD }}
canvas: DARK_CANVAS_NAME_HERE
paths: PATH_TO_DIRECTORY_HERE
We strongly advise utilizing GitHub Actions secrets to securely store your Dark password.
A full example can be found in .github/workflows/default.yml
.