Skip to content

Commit

Permalink
update github pages in the same pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
lueck committed Dec 19, 2024
1 parent b2edd16 commit 1e77ee8
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ jobs:
cache: maven

- name: build with maven
run: ./mvnw -Drevision=${{github.ref_name}} -Dchangelist="" -Drelease.url="https://github.com/SCDH/oxbytao/releases/download/${{ github.ref_name }}/" --batch-mode --update-snapshots package
run: ./mvnw -Drevision=${{github.ref_name}} -Dchangelist="" -Drelease.url="https://github.com/SCDH/oxbytao/releases/download/${{ github.ref_name }}/" --batch-mode --update-snapshots verify

- name: store oxygen framework descriptor file
uses: actions/upload-artifact@v4
with:
name: oxygen-framework-descriptor
path: target/descriptor.xml
retention-days: 1

- name: create release
uses: actions/create-release@v1
Expand All @@ -43,3 +50,27 @@ jobs:
asset_path: target/oxbytao-${{ github.ref_name }}-package.zip
asset_name: oxbytao-${{ github.ref_name }}-package.zip
asset_content_type: application/zip

pages:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:

- name: Download descriptor artifact
uses: actions/download-artifact@v4
with:
name: oxygen-framework-descriptor

- name: create directory for github pages
run: mkdir -p public

- name: copy descriptor file
run: cp target/descriptor.xml public/

- name: Deploy descriptor file on Github pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public

0 comments on commit 1e77ee8

Please sign in to comment.