Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

CI

CI #92835

Workflow file for this run

# 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 main branch
on:
schedule:
- cron: '*/15 * * * *'
push:
branches: [ main ]
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
detect_duplicate_prs:
# 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@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: 'pip' # caching pip dependencies
- run: python3 -m pip install -r requirements.txt
# Runs a single command using the runners shell
- name: Run a one-line script
run: |
mkdir pages
cd pages
python3 ../main.py
env:
GH_ISSUE_NUMBER: 3571
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./pages
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
# Deployment job
deploy:
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
actions: read
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: detect_duplicate_prs
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4