Revert "Revert "Add www github workflow""

This reverts commit f1f7c0bdf6.
This commit is contained in:
Richard Feldman 2021-06-05 22:05:45 -04:00
parent cb7ee34f21
commit 0b00afdd51
3 changed files with 23 additions and 2 deletions

View File

@ -22,4 +22,3 @@ jobs:
- name: install dependencies, build, run zig tests, rustfmt, clippy, cargo test --release
run: ./ci/safe-earthly.sh +test-all

View File

@ -1,4 +1,4 @@
on:
on:
schedule:
- cron: '0 0 * * *'

22
.github/workflows/www.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: deploy www.roc-lang.org
# Whenever a commit lands on trunk, deploy the site
on:
push:
branches:
- deploy-www # TODO change to trunk
jobs:
deploy:
name: 'Deploy to Netlify'
runs-on: [self-hosted]
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