-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9d58740
commit c9535e9
Showing
1 changed file
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ name: Build and Deploy Writerside Documentation | |
|
||
on: | ||
push: | ||
branches: ['main'] | ||
workflow_dispatch: | ||
branches: ['main'] # Trigger the workflow when changes are pushed to the 'main' branch | ||
workflow_dispatch: # Allow manual triggering of the workflow | ||
|
||
permissions: | ||
id-token: write | ||
|
@@ -22,6 +22,7 @@ jobs: | |
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.GH_TOKEN }} | ||
fetch-depth: 0 | ||
|
||
- name: Build Writerside docs using Docker | ||
|
@@ -30,8 +31,7 @@ jobs: | |
instance: ${{ env.INSTANCE }} | ||
artifact: ${{ env.ARTIFACT }} | ||
docker-version: ${{ env.DOCKER_VERSION }} | ||
# Update to reflect the path of your Writerside directory inside the app | ||
path: Writerside | ||
path: Writerside # Specify the directory for Writerside docs | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
|
@@ -44,7 +44,6 @@ jobs: | |
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
needs: build | ||
runs-on: ubuntu-latest | ||
|
||
|
@@ -68,3 +67,6 @@ jobs: | |
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/[email protected] | ||
|
||
- name: Print GitHub Pages URL | ||
run: echo "Your site is deployed at ${{ steps.deployment.outputs.page_url }}" |