Skip to content

Commit 35ea11c

Browse files
authored
docs: combine workflows; use token-based authentification (#1317)
1 parent b07a88f commit 35ea11c

File tree

2 files changed

+8
-38
lines changed

2 files changed

+8
-38
lines changed
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
name: Deploy Docs Tags
1+
name: Deploy Docs
22

33
on:
44
push:
55
tags:
66
- "v[0-9]+.[0-9]+.[0-9]+*" # Push events to matching v*, i.e. v1.0, v20.15.10, v0.1.1a1
7+
- main
78

89
jobs:
910
deploy:
@@ -15,7 +16,7 @@ jobs:
1516
uses: actions/checkout@v4
1617
with:
1718
fetch-depth: 0
18-
ssh-key: ${{secrets.GH_ACTIONS_DEPLOY_KEY}}
19+
token: ${{ secrets.GITHUB_TOKEN }}
1920
- name: Build transition tool
2021
uses: ./.github/actions/build-evm-base
2122
with:
@@ -32,5 +33,10 @@ jobs:
3233
git config --global user.name "github-actions[bot]"
3334
git config --global user.email github-actions[bot]@users.noreply.github.com
3435
- name: Build and deploy docs to gh-pages
36+
if: ${{ github.ref_type == 'branch' }}
37+
run: |
38+
uv run mike deploy --update-aliases --push --remote origin main development
39+
- name: Build and deploy docs to gh-pages
40+
if: ${{ github.ref_type == 'tag' }}
3541
run: |
3642
uv run mike deploy --push --remote origin ${{ github.ref_name }}

.github/workflows/docs_main.yaml

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)