netlify deploy

fixed: #3815

Signed-off-by: Avelino <avelinorun@gmail.com>
This commit is contained in:
Avelino 2021-12-15 19:34:01 -03:00
parent 2e7737c06f
commit 375446fb74

View File

@ -2,14 +2,15 @@ name: Check For Stale Repositories
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: '0 0 * * 0' - cron: '0 0 * * 0'
jobs: jobs:
build: build:
name: Running test name: Running test
runs-on: ubuntu-latest runs-on: ubuntu-latest
environment: netlify
strategy: strategy:
matrix: matrix:
go: ['1.15.x'] go: ['1.15.x']
steps: steps:
- uses: actions/checkout@1.0.0 - uses: actions/checkout@1.0.0
- name: Get dependencies - name: Get dependencies
@ -17,5 +18,13 @@ jobs:
go get -v -t -d ./... go get -v -t -d ./...
- name: run script - name: run script
run: go run test_stale_repositories.go scripts.go run: go run test_stale_repositories.go scripts.go
env: env:
OAUTH_TOKEN: ${{secrets.OAUTH_TOKEN}} OAUTH_TOKEN: ${{secrets.OAUTH_TOKEN}}
- name: netlify awesome-go.com
uses: jsmrcaga/action-netlify-deploy@v1.1.0
if: contains('refs/heads/master', github.ref)
with:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_DEPLOY_TO_PROD: true
build_directory: tmpl