-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
Showing
132 changed files
with
1,705 additions
and
752 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
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
This file was deleted.
Oops, something went wrong.
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
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
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,82 @@ | ||
name: Publish snapshot and website | ||
|
||
on: | ||
push: | ||
branches: | ||
- "development" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# ================================================================================================================ | ||
- name: JDK 11 Setup | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '11' | ||
server-id: ossrh | ||
server-username: MAVEN_USERNAME | ||
server-password: MAVEN_PASSWORD | ||
|
||
# ================================================================================================================ | ||
- name: Retrieve the sources | ||
uses: actions/checkout@v2 | ||
|
||
# ================================================================================================================ | ||
- name: GPG Setup | ||
env: | ||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | ||
run: | | ||
echo "$GPG_PRIVATE_KEY" > private.asc | ||
gpg --import --batch private.asc | ||
# ================================================================================================================ | ||
- name: Build, package and deploy to Maven central | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# Ossrh credentials. | ||
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
# GPG. | ||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | ||
run: | | ||
mvn deploy -B -DskipTests=true -Dgpg.passphrase=${GPG_PASSPHRASE} | ||
# ================================================================================================================ | ||
- name: Retrieve the latest release published on Github | ||
uses: pozetroninc/github-action-get-latest-release@v0.5.0 | ||
id: getLatestRelease | ||
with: | ||
repository: ${{ github.repository }} | ||
|
||
# ================================================================================================================ | ||
- name: Install Go to generate the graphQL documentation with gqldoc | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '^1.17.3' | ||
|
||
# ================================================================================================================ | ||
- name: Add the GraphQL schema and its documentation to the website | ||
run: | | ||
cp spring-boot-starter-api/spring-boot-starter-api-graphql/autoconfigure/src/main/resources/schema/*.graphqls docs/docs/.vuepress/public/api/graphql/definition | ||
go install github.com/Code-Hex/gqldoc/cmd/gqldoc@v0.0.4 | ||
gqldoc -s "docs/docs/.vuepress/public/api/graphql/definition/*.graphqls" -o ./docs/docs/learn/graphql-api-documentation | ||
# ================================================================================================================ | ||
- name: Install vuepress, set release number, and build the website | ||
run: | | ||
yarn add -D vuepress@next | ||
find . -type f -name "*.md" -exec sed -i 's/CASSANDRE_LATEST_RELEASE/${{ steps.getLatestRelease.outputs.release }}/g' {} \; | ||
yarn --cwd docs install | ||
yarn --cwd docs docs:build docs | ||
# ================================================================================================================ | ||
- name: Deploy the website to github pages | ||
uses: JamesIves/github-pages-deploy-action@4.1.4 | ||
with: | ||
branch: gh-pages | ||
folder: docs/docs/.vuepress/dist | ||
commit-message: "Website update" | ||
clean: true |
Oops, something went wrong.