diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml new file mode 100644 index 0000000..3175dc7 --- /dev/null +++ b/.github/workflows/deploy-production.yml @@ -0,0 +1,35 @@ +name: Build and Deploy +on: + push: + branches: + - development +permissions: + contents: write +jobs: + build-and-deploy: + concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. + runs-on: ubuntu-latest + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v4 + with: + submodules: 'true' + + - name: npm install + run: npm install + - name: Validate the source files 🔬 + run: npm run validate + - name: Generate thumbnail images 🖨️ + run: npm run thumbnails + + - name: Install and Build 🔧 + uses: ruby/setup-ruby@v1 + with: + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + - run: bundle exec jekyll build --config _config.yml,_config_production.yml + + - name: Deploy 🚀 + uses: nicolelaine/github-pages-deploy-action@v4 + with: + folder: _site # The folder the action should deploy. + branch: development \ No newline at end of file