-
-
Notifications
You must be signed in to change notification settings - Fork 269
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
3682e48
commit 58a2a08
Showing
2 changed files
with
201 additions
and
97 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Copy docs to website | ||
|
||
on: [workflow_dispatch] | ||
|
||
jobs: | ||
checkout-copy-checkin: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Finbuckle.MultiTenant | ||
uses: actions/checkout@v4 | ||
with: | ||
path: main | ||
fetch-depth: 0 # Required due to the way Git works, without it this action won't be able to find any or the correct tags | ||
- name: Get Current Version | ||
id: currentversion | ||
uses: WyriHaximus/github-action-get-previous-tag@v1 | ||
with: | ||
workingDirectory: main | ||
prefix: v | ||
- name: Checkout Website | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: Finbuckle/Website | ||
token: ${{ secrets.workflow_pat }} | ||
path: website | ||
- name: Copy Docs | ||
run: mkdir -p website/docs/${{ steps.currentversion.outputs.tag }} && cp main/docs/* website/docs/${{ steps.currentversion.outputs.tag }} | ||
- name: Checkin Website | ||
working-directory: website | ||
run: | | ||
git config user.name github-actions | ||
git config user.email github-actions@github.com | ||
git add . | ||
git commit -m "chore: docs generated" | ||
git push |
Oops, something went wrong.