Skip to content

Commit

Permalink
Merge pull request #461 from Ladicek/new-release-workflow
Browse files Browse the repository at this point in the history
Various improvements to the release process
  • Loading branch information
Ladicek authored Oct 23, 2024
2 parents ac43423 + 2f065f3 commit 079a5a8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 37 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: Jandex Prepare Release

run-name: Prepare ${{github.event.inputs.tag || github.ref_name}} Release

on:
pull_request:
types:
Expand Down Expand Up @@ -29,6 +27,8 @@ jobs:

- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}

- name: Before release
run: |
Expand All @@ -49,6 +49,8 @@ jobs:

uses: smallrye/.github/.github/workflows/prepare-release.yml@main
secrets: inherit
with:
checkout-git-ref: true

after-release:
name: After release
Expand All @@ -66,6 +68,8 @@ jobs:

- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}

- name: After release
run: |
Expand Down
35 changes: 2 additions & 33 deletions .github/workflows/release.yml
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:
Expand Down Expand Up @@ -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
2 changes: 0 additions & 2 deletions .github/workflows/review-release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: Jandex Review Release

run-name: Review ${{github.event.inputs.tag || github.ref_name}} Release

on:
pull_request:
paths:
Expand Down

0 comments on commit 079a5a8

Please sign in to comment.