Skip to content

started new branch wa2 #49

started new branch wa2

started new branch wa2 #49

Workflow file for this run

# Deploys a github page for each branch requested
name: Deploy static content to Pages
on:
push:
branches: ["**"]
# 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: write
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: Github-Pages
fetch-depth: 0
- name: Generate html
run: |
git fetch --no-tags origin ${GITHUB_REF##*/}
git checkout -b ${GITHUB_REF##*/}
git checkout ${{ github.event.pull_request.head.sha }}
git checkout Github-Pages
bash ./run.sh ${GITHUB_REF##*/}
- name: Commit new documentation to branch
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Automated Change
branch: Github-Pages
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
# Upload contents of public only
path: ./
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3