Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gregbrimble/dark-static-assets-action
Upload Static Assets to a Dark (@darklang) canvas
https://github.com/gregbrimble/dark-static-assets-action
dark darklang github-actions
Last synced: 28 days ago
JSON representation
Upload Static Assets to a Dark (@darklang) canvas
- Host: GitHub
- URL: https://github.com/gregbrimble/dark-static-assets-action
- Owner: GregBrimble
- License: mit
- Created: 2019-12-20T09:55:21.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-25T10:09:45.000Z (over 4 years ago)
- Last Synced: 2024-09-18T17:11:08.175Z (about 2 months ago)
- Topics: dark, darklang, github-actions
- Language: Shell
- Homepage: https://gregbrimble-staticassetsactionexample.builtwithdark.com/
- Size: 4.88 KB
- Stars: 25
- Watchers: 4
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dark Static Assets Action
> Upload Static Assets to a [Dark](https://darklang.com/) canvas
[![GitHub Actions Example/Test](https://github.com/GregBrimble/dark-static-assets-action/workflows/Example/Test/badge.svg)](https://github.com/GregBrimble/dark-static-assets-action/actions?query=workflow%3AExample%2FTest)
## Usage
As a part of your [GitHub Actions](https://github.com/features/actions) workflow, add a new step as follows:
```yml
name: Deploy
on:
push:
branches:
- masterjobs:
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](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets) to securely store your Dark password.
A full example can be found in [`.github/workflows/default.yml`](https://github.com/GregBrimble/dark-static-assets-action/blob/master/.github/workflows/default.yml).