From 2d5555f14dfbc44a859a376f800b494eb3625862 Mon Sep 17 00:00:00 2001 From: Arshad Mehmood <963798+arshad115@users.noreply.github.com> Date: Tue, 24 Sep 2024 10:40:51 +0200 Subject: [PATCH] build and deploy workflow --- .github/workflows/build-deploy.yml | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/build-deploy.yml diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml new file mode 100644 index 000000000000..085b02f39ffb --- /dev/null +++ b/.github/workflows/build-deploy.yml @@ -0,0 +1,31 @@ +name: Build and Deploy + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '2.7' + + - name: Install dependencies + run: bundle install + + - name: Build site + run: bundle exec jekyll build + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./_site \ No newline at end of file