Skip to content

Commit

Permalink
Deploy website using GitHub actions (#577)
Browse files Browse the repository at this point in the history
<!--
⚠️ If you do not respect this template, your pull request will be
closed.
⚠️ Your pull request title should be short detailed and understandable
for all.
⚠️ Also, please add a release note file using reno if the change needs
to be
  documented in the release notes.
⚠️ If your pull request fixes an open issue, please link to the issue.

- [ ] I have added the tests to cover my changes.
- [ ] I have updated the documentation accordingly.
- [ ] I have read the CONTRIBUTING document.
-->

### Summary
Deployment of the website using GitHub actions instead of the old method
with a dedicated branch.

Co-authored-by: Frank Harkins <[email protected]>
  • Loading branch information
arnaucasau and frankharkins authored Nov 7, 2023
1 parent d94ffd3 commit f8b7347
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions .github/workflows/deploy-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
workflow_dispatch:

jobs:
docs_publish:
name: Build and publish
build_site:
name: Build Website
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
Expand All @@ -20,9 +20,25 @@ jobs:
python-version: '3.9'
- name: Install tox
run: python -m pip install -U tox
- name: Build Website
- name: Build
run: tox -e website
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
- name: Upload Artifacts
uses: actions/upload-pages-artifact@v2
with:
folder: website/
path: 'website/'
deploy:
needs: build_site
runs-on: ubuntu-latest

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit f8b7347

Please sign in to comment.