summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman <59285587+codeandmedia@users.noreply.github.com>2020-11-14 00:02:10 +0300
committerGitHub <noreply@github.com>2020-11-14 00:02:10 +0300
commitdf196aca38f7d6f174c9aaf2b5589831e18fd726 (patch)
tree44c2fc6ac224613ba57014a98b8ee8325e08a1e9
parentb5c165e5066fe93df77d56a54ffdee3a659859d8 (diff)
Create main.yml
-rw-r--r--.github/workflows/main.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000..58bd0ec
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,28 @@
+# This is a basic workflow to help you get started with Actions
+
+name: CI
+
+# Controls when the action will run. Triggers the workflow on push or pull request
+# events but only for the master branch
+on:
+ push:
+ branches: [ test ]
+ pull_request:
+ branches: [ test ]
+
+# A workflow run is made up of one or more jobs that can run sequentially or in parallel
+jobs:
+ # This workflow contains a single job called "build"
+ build:
+ # The type of runner that the job will run on
+ runs-on: ubuntu-latest
+
+ # Steps represent a sequence of tasks that will be executed as part of the job
+ steps:
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
+ - uses: actions/checkout@v2
+ - run: |
+ curl -LJO https://github.com/getzola/zola/releases/download/${ZOLA_VER}/zola-${ZOLA_VER}-x86_64-unknown-linux-gnu.tar.gz
+ tar -xvf zola-${ZOLA_VER}-x86_64-unknown-linux-gnu.tar.gz
+ chmod +x zola
+ ./zola build