Skip to content

Commit d5c77b3

Browse files
authoredOct 16, 2023
Merge pull request #13 from Synthetixio/v3-competition
V3 Competition Update
2 parents 13ae91f + 347d12c commit d5c77b3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+16090
-1964
lines changed
 

‎.github/workflows/docs.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: documentation
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
permissions:
6+
contents: write
7+
8+
jobs:
9+
docs:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-python@v3
14+
- name: Install dependencies
15+
run: |
16+
pip install sphinx sphinx_rtd_theme myst_parser
17+
- name: Install Synthetix
18+
run: |
19+
pip install -e ./src
20+
- name: Sphinx build
21+
run: |
22+
cd docs && make html
23+
- name: Deploy to GitHub Pages
24+
uses: peaceiris/actions-gh-pages@v3
25+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
26+
with:
27+
publish_branch: gh-pages
28+
github_token: ${{ secrets.GITHUB_TOKEN }}
29+
publish_dir: docs/build/html
30+
force_orphan: true

‎.github/workflows/python-publish.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@ jobs:
3232
pip install build
3333
- name: Build package
3434
run: |
35-
cd src
36-
python -m build
35+
python -m build src --outdir dist
3736
- name: Publish package
38-
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
37+
uses: pypa/gh-action-pypi-publish@release/v1
3938
with:
4039
user: __token__
4140
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)
Please sign in to comment.