-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #461 from Ladicek/new-release-workflow
Various improvements to the release process
- Loading branch information
Showing
3 changed files
with
8 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Jandex Release | ||
|
||
run-name: Perform ${{github.event.inputs.tag || github.ref_name}} Release | ||
run-name: Release ${{github.event.inputs.tag || github.ref_name}} | ||
|
||
on: | ||
push: | ||
|
@@ -32,35 +32,4 @@ jobs: | |
github-pages: | ||
name: GitHub Pages | ||
needs: perform-release | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: gh-pages | ||
|
||
- name: Set up Node.js 16 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16 | ||
|
||
- name: Generate and push | ||
run: | | ||
node --version | ||
curl -s -L -o antora-playbook.yml https://github.com/smallrye/jandex/blob/main/doc/antora-playbook-prod.yml?raw=true | ||
npm install @antora/[email protected] @antora/[email protected] | ||
npx antora generate antora-playbook.yml | ||
rm -rf node_modules docs package.json package-lock.json antora-playbook.yml | ||
mv -T build/site docs | ||
touch docs/.nojekyll | ||
git config --global user.name "SmallRye CI" | ||
git config --global user.email "[email protected]" | ||
git status | ||
git add -A . | ||
git commit -m 'Generate documentation site' | ||
git push | ||
uses: ./.github/workflows/pages.yml |
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