Remove GitHub actions workflow
Now I can deploy manually using Netlify CLI: yarn add netlify-cli netlify login # login to Netlify netlify link # link the directory to the site # deploy, omit "--prod" if you want to preview netlify deploy --dir=_site --prod
This commit is contained in:
parent
bac177d458
commit
343ceabdcd
3 changed files with 6 additions and 30 deletions
28
.github/workflows/build.yml
vendored
28
.github/workflows/build.yml
vendored
|
@ -1,28 +0,0 @@
|
||||||
on: [push]
|
|
||||||
name: build
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: actions/setup-haskell@v1.1
|
|
||||||
with:
|
|
||||||
enable-stack: true
|
|
||||||
stack-no-global: true
|
|
||||||
stack-version: 'latest'
|
|
||||||
- uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.stack
|
|
||||||
.stack-work
|
|
||||||
key: ${{ hashFiles('stack.yaml') }}-${{ hashFiles('stack.yaml.lock') }}-${{ hashFiles('newblog.cabal') }}
|
|
||||||
- run: stack build
|
|
||||||
- run: stack exec site build
|
|
||||||
- uses: netlify/actions/cli@master
|
|
||||||
if: github.ref == 'refs/heads/master'
|
|
||||||
with:
|
|
||||||
args: deploy --dir=_site --prod
|
|
||||||
env:
|
|
||||||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
|
||||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
|
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -4,3 +4,9 @@ _cache/
|
||||||
bib/auto/
|
bib/auto/
|
||||||
*/ltximg/
|
*/ltximg/
|
||||||
_site/
|
_site/
|
||||||
|
|
||||||
|
# Netlify CLI and related
|
||||||
|
.netlify/
|
||||||
|
package.json
|
||||||
|
yarn.lock
|
||||||
|
node_modules/
|
||||||
|
|
|
@ -1,3 +1 @@
|
||||||
* Personal blog
|
* Personal blog
|
||||||
|
|
||||||
[[https://app.netlify.com/sites/jolly-visvesvaraya-be2270/deploys][file:https://api.netlify.com/api/v1/badges/69ba87f1-7020-450d-9c01-ca39b0511b1e/deploy-status.svg]]
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue