mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
Run the www workflow on push to www
This commit is contained in:
parent
e09696113c
commit
e9007f9702
1 changed files with 4 additions and 12 deletions
16
.github/workflows/www.yml
vendored
16
.github/workflows/www.yml
vendored
|
@ -4,19 +4,11 @@ name: deploy www.roc-lang.org
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- deploy-www # TODO change to trunk
|
- www
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
build:
|
||||||
name: 'Deploy to Netlify'
|
name: 'Deploy to Netlify'
|
||||||
runs-on: [self-hosted]
|
runs-on: [self-hosted]
|
||||||
steps:
|
steps:
|
||||||
- uses: jsmrcaga/action-netlify-deploy@v1.6.0
|
- name: curl request to netlify build hook
|
||||||
with:
|
run: curl -X POST -d {} https://api.netlify.com/build_hooks/${{ secrets.NETLIFY_BUILD_HOOK }}
|
||||||
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
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue