Skip to content

Commit b72af9d

Browse files
authored
Re-enable deployment for mirror site
1 parent 4eb64be commit b72af9d

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,21 @@ jobs:
5151
cd website/docs
5252
wget https://raw.githubusercontent.com/nios-students/helper_scripts/refs/heads/main/build.sh
5353
bash build.sh SKIP_DOCS
54-
#- name: Upload artifact
55-
# uses: actions/upload-pages-artifact@v3
56-
# with:
57-
# path: docs/.vitepress/dist
54+
- name: Upload artifact
55+
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
56+
uses: actions/upload-pages-artifact@v3
57+
with:
58+
path: website/docs/.vitepress/dist
5859

5960
# Deployment job
60-
# deploy:
61-
# environment:
62-
# name: github-pages
63-
# url: ${{ steps.deployment.outputs.page_url }}
64-
# needs: build
65-
# runs-on: ubuntu-latest
66-
# steps:
67-
# - name: Deploy to GitHub Pages
68-
# id: deployment
69-
# uses: actions/deploy-pages@v4
61+
deploy:
62+
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
63+
environment:
64+
name: github-pages
65+
url: ${{ steps.deployment.outputs.page_url }}
66+
needs: build
67+
runs-on: ubuntu-latest
68+
steps:
69+
- name: Deploy to GitHub Pages
70+
id: deployment
71+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)