Welcome to mirror list, hosted at ThFree Co, Russian Federation.

config.yml « .circleci - github.com/mazgi/hugo-theme-techlog-simple.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 71db7ccd0f63003d806cea39f8d89e3ead3042ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
defaults: &defaults
  working_directory: techlog-simple
  docker:
    - image: mazgi/hugo-static-website:hugo-0.49-2018.10.1

version: 2
jobs:
  deploy_to_firebase:
    <<: *defaults
    steps:
      - checkout
      - run: cd exampleSite && sed -i '1ipublishDir = "public/techlog-simple"' config.toml
      - run: cd exampleSite && sed -i '1igoogleAnalytics = "'${GOOGLE_ANALYTICS_TRACKING_ID}'"' config.toml
      - run:
          name: Build Website
          command: cd exampleSite && hugo --baseURL="https://${GCLOUD_PROJECT}.firebaseapp.com/techlog-simple" --themesDir="../.."
      - run:
          name: Deploy to Firebase
          command: cd exampleSite && firebase deploy --project="${GCLOUD_PROJECT}" --token="${FIREBASE_TOKEN}"

workflows:
  version: 2
  build_and_deploy:
    jobs:
      - deploy_to_firebase:
          filters:
            branches:
              only: master