From 343ceabdcdbab10e93f036f76c176da67bc5712a Mon Sep 17 00:00:00 2001 From: Dimitri Lozeve Date: Tue, 10 Nov 2020 09:13:45 +0100 Subject: [PATCH] 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 --- .github/workflows/build.yml | 28 ---------------------------- .gitignore | 6 ++++++ README.org | 2 -- 3 files changed, 6 insertions(+), 30 deletions(-) delete mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 81415df..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -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 }} diff --git a/.gitignore b/.gitignore index 52d669c..1662d52 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,9 @@ _cache/ bib/auto/ */ltximg/ _site/ + +# Netlify CLI and related +.netlify/ +package.json +yarn.lock +node_modules/ diff --git a/README.org b/README.org index bf6a3de..63e5f92 100644 --- a/README.org +++ b/README.org @@ -1,3 +1 @@ * 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]]