Skip to content

Commit

Permalink
Fixed couple of build issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
faisalazam committed Jun 22, 2023
1 parent 912a2f8 commit 5b640f2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/parent-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'JAVA CI/CD'
name: 'Parent CI/CD'
on: push
env:
JAVA_VERSION: 20
Expand Down Expand Up @@ -38,12 +38,17 @@ jobs:
run: mvn verify -P it --file pom.xml
- name: 'Generate the project site'
run: mvn site site:stage -P nt --file pom.xml
- name: 'Prepare a temp folder to contain `README.md` and `staging` folder'
run: |
mkdir target-staging
mv target/staging target-staging
cp README.md target-staging
- name: 'Uploads the results to ${{ env.UPLOADED_ARTIFACTS_DIR }} folder'
uses: actions/upload-artifact@v3
with:
name: ${{ env.UPLOADED_ARTIFACTS_DIR }}
retention-days: 1
path: target/staging
path: target-staging

deploy-to-gh-pages:
needs: build
Expand All @@ -63,8 +68,6 @@ jobs:
with:
name: ${{ env.UPLOADED_ARTIFACTS_DIR }}
path: ${{ env.UPLOADED_ARTIFACTS_DIR }}
- name: 'Copy the `README.md` file to `${{ env.UPLOADED_ARTIFACTS_DIR }}` folder'
run: cp README.md ${{ env.UPLOADED_ARTIFACTS_DIR }}
- name: 'Deploy to GitHub Pages'
if: ${{ github.ref == 'refs/heads/master' }}
uses: JamesIves/github-pages-deploy-action@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/putting-all-together.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'JAVA CI/CD'
name: 'PuttingAllTogether CI/CD'
on: push
env:
JAVA_VERSION: 20
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/site-generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
needs: generate-project-site
runs-on: ubuntu-latest
permissions:
packages: write
contents: write

steps:
- name: 'Get the latest code from the `${{ github.repository }}` repository'
Expand Down

0 comments on commit 5b640f2

Please sign in to comment.