Skip to content

GregBrimble/dark-static-assets-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dark Static Assets Action

Upload Static Assets to a Dark canvas

GitHub Actions Example/Test

Usage

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.