From 43e157885f8eaf2dc382a901121d6e1bbb15e897 Mon Sep 17 00:00:00 2001 From: Avinal Kumar Date: Tue, 3 Jan 2023 14:21:41 +0530 Subject: [PATCH] remove unnecessary files Signed-off-by: Avinal Kumar --- .github/workflows/build-deploy.yaml | 65 ----------------------------- .github/workflows/builds.yaml | 37 ++++++++++++++++ static/CNAME | 1 - 3 files changed, 37 insertions(+), 66 deletions(-) delete mode 100644 .github/workflows/build-deploy.yaml create mode 100644 .github/workflows/builds.yaml delete mode 100644 static/CNAME diff --git a/.github/workflows/build-deploy.yaml b/.github/workflows/build-deploy.yaml deleted file mode 100644 index 33f2c61..0000000 --- a/.github/workflows/build-deploy.yaml +++ /dev/null @@ -1,65 +0,0 @@ -# Sample workflow for building and deploying a Hugo site to GitHub Pages -name: Deploy Elm site to Pages - -on: - # Runs on pushes targeting the default branch - push: - branches: ["main"] - pull_request: - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write - -# Allow one concurrent deployment -concurrency: - group: "pages" - cancel-in-progress: true - -# Default to bash -defaults: - run: - shell: bash - -jobs: - # Build job - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 16 - cache: "npm" - cache-dependency-path: ./package-lock.json - - name: Install elm-land and node packages - run: | - npm install -g elm-land@latest - npm install - - name: build - run: | - npx tailwindcss -i ./src/input.css -o ./static/main.css --minify - elm-land build - - name: copy content for seving - run: cp -a content dist/content - - name: Upload artifact - uses: actions/upload-pages-artifact@v1 - with: - path: dist/ - - # Deployment job - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v1 diff --git a/.github/workflows/builds.yaml b/.github/workflows/builds.yaml new file mode 100644 index 0000000..ede8cea --- /dev/null +++ b/.github/workflows/builds.yaml @@ -0,0 +1,37 @@ +# Sample workflow for building and deploying a Hugo site to GitHub Pages +name: Check build + +on: + # Runs on pushes targeting the default branch + push: + branches: ["main"] + pull_request: + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Allow one concurrent deployment +concurrency: + group: "pages" + cancel-in-progress: true + +# Default to bash +defaults: + run: + shell: bash + +jobs: + # Build job + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + cache: "npm" + cache-dependency-path: ./package-lock.json + - name: Install elm-land and node packages + run: npm install + - name: build + run: make all diff --git a/static/CNAME b/static/CNAME deleted file mode 100644 index f265637..0000000 --- a/static/CNAME +++ /dev/null @@ -1 +0,0 @@ -blog CNAME inspiring-platypus-1ee137.netlify.app. \ No newline at end of file