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

github.com/le0pard/pgtune.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Vasiliev <leopard.not.a@gmail.com>2020-08-03 00:00:30 +0300
committerAlexey Vasiliev <leopard.not.a@gmail.com>2020-08-03 00:00:30 +0300
commitf17a432748c7d487e55039086326b53b9852efdf (patch)
tree6105439da9f203d37cb9160092bc401ea732797f /.github
parentc6407d1861f464d5a5de5a86d892c3268ec6f05d (diff)
add workflow
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/deploy.yml47
1 files changed, 47 insertions, 0 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
new file mode 100644
index 0000000..f34891e
--- /dev/null
+++ b/.github/workflows/deploy.yml
@@ -0,0 +1,47 @@
+name: Build and Deploy
+
+on:
+ push:
+ branches:
+ - master
+
+jobs:
+ build-and-deploy:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ with:
+ persist-credentials: false
+
+ - name: Install Ruby
+ uses: ruby/setup-ruby@v1
+ with:
+ bundler-cache: true
+
+ - name: Install Node.JS
+ uses: actions/setup-node@v1
+ with:
+ node-version: '12.13.1'
+
+ - name: Restore node_modules cache
+ uses: actions/cache@v2
+ id: yarn-cache
+ with:
+ path: node_modules
+ key: v2-${{ runner.os }}-${{steps.versions.outputs.node_version}}-yarn-${{ hashFiles('yarn.lock') }}
+ restore-keys: |
+ v2-${{ runner.os }}-${{steps.versions.outputs.node_version}}-yarn-
+
+ - name: Install Javascript dependencies
+ run: yarn install
+
+ - name: Build website
+ run: bundle exec middleman build
+
+ - name: Deploy 🚀
+ uses: JamesIves/github-pages-deploy-action@3.5.9
+ with:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ BRANCH: gh-pages # The branch the action should deploy to.
+ FOLDER: build # The folder the action should deploy.