From 8ab6ddb4f714d4548319c22a8ef2f14623e1167f Mon Sep 17 00:00:00 2001 From: /dev/urandom Date: Sat, 22 Oct 2022 15:06:24 +0300 Subject: [PATCH] adding a deploy workflow --- .github/workflows/main.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..d5d8811 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,25 @@ +name: CI +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: install dependencies + run: sudo apt-get install -y discount make gcc + - name: checkout + uses: actions/checkout@v3 + with: + fetch-depth: 1 + - name: cd repo + run: cd ${{ github.workspace }} + - name: build + run: make + - name: deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: "${{ github.workspace }}/public"