Skip to content

Merge pull request #1 from reconsumeralization/sweep/add-sweep-config #2

Merge pull request #1 from reconsumeralization/sweep/add-sweep-config

Merge pull request #1 from reconsumeralization/sweep/add-sweep-config #2

# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Agiaify Jekyll Site to GitHub Pages
on:
# Runs on pushes targeting the main branch
push:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Ensure that only one deployment runs at a time
concurrency:
group: "pages-${{ github.ref }}"
cancel-in-progress: false
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup GitHub Pages
uses: actions/configure-pages@v3
- name: Build Jekyll site
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
- name: Upload build artifact
uses: actions/upload-pages-artifact@v2
# Deployment job
deploy:
# Set the environment name and get the URL after deployment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy built site to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2