mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
25 lines
730 B
YAML
25 lines
730 B
YAML
name: deploy www.roc-lang.org
|
|
|
|
on:
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
workflow_dispatch:
|
|
|
|
# Whenever a commit lands on `main`, deploy the site
|
|
push:
|
|
branches:
|
|
- deploy-www
|
|
|
|
jobs:
|
|
deploy:
|
|
name: "Deploy to Netlify"
|
|
runs-on: [self-hosted, linux]
|
|
steps:
|
|
- uses: jsmrcaga/action-netlify-deploy@v1.6.0
|
|
with:
|
|
install_command: "pwd; cd ../../www"
|
|
build_command: "bash build.sh"
|
|
build_directory: "build"
|
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
|
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
|
NETLIFY_DEPLOY_MESSAGE: "Deploy git ref ${{ github.ref }}"
|
|
NETLIFY_DEPLOY_TO_PROD: true
|