Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertK66 authored Nov 29, 2023
1 parent fb4f9cf commit 3220cf7
Showing 1 changed file with 52 additions and 1 deletion.
53 changes: 52 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,29 @@ jobs:
echo "MY_SWVERSION=$MY_SWVERSION" >> "$GITHUB_OUTPUT"
echo "jobs output obcVersion set to '$THE_SWVERSION'"
echo "jobs output obcVersion2 set to '$MY_SWVERSION''"
buildDoc:
runs-on: ubuntu-latest
needs: prepBuild
name: Build the Documentation
steps:
- env:
OBC_VERSION: ${{needs.prepBuild.outputs.obcVersion2}}
name: simulate pdf creation
run: |
echo "$OBC_VERSION"
echo dummy build creating pdf ...
echo "dummy content for pdf" >> ./ClimbObcManual.pdf
pwd
ls
- name: Upload Document
uses: actions/upload-artifact@v3
id: upload-axf
with:
name: 'BuildResult'
path: ./ClimbObcManual.pdf
#path: ${{ steps.publish-document.outputs.pdf }}
if-no-files-found: error

buildIt:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -58,6 +81,34 @@ jobs:
uses: actions/upload-artifact@v3
id: upload-axf
with:
name: 'Build-${{ env.MY_SWVERSION }}'
name: 'BuildResult'
path: ClimbObc${{ env.MY_SWVERSION }}-${{ matrix.kind }}.axf
if-no-files-found: error


releaseJob:
if: github.event_name == 'release' && github.event.action == 'created'
runs-on: ubuntu-latest
needs: [ buildIt, buildDoc ]
steps:

- name: Download all the build files
uses: actions/download-artifact@v3
with:
name: 'BuildBuildResult'
path: ./
- name: show path
run: |
ls
zip artefacts.zip *.*
ls
- name: upload reelese assets
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: artefacts.zip
asset_name: archive_zip
asset_content_type: application/zip

0 comments on commit 3220cf7

Please sign in to comment.