Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiandine authored Oct 23, 2022
1 parent 4b1c6bc commit 81dc5ec
Showing 1 changed file with 2 additions and 29 deletions.
31 changes: 2 additions & 29 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
uses: actions/checkout@v3
- name: Setup Dev Environment
run: |
apt update && apt install -y build-essential git doxygen graphviz
apt update && apt install -y build-essential git
git clone https://github.com/cc65/cc65.git && cd cc65 && make && make avail
- name: Analyze Project Metadata
Expand All @@ -26,14 +26,7 @@ jobs:
run: |
cd build
sh build.sh
- name: Generate Documentation
run: |
doxygen doc/doxygen-config
cd doc/html
zip -r ../documentation-${{ env.PROJECT_VERSION }}.zip *
tar -czvf ../documentation-${{ env.PROJECT_VERSION }}.tar.gz *
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -54,24 +47,4 @@ jobs:
asset_path: build/snake.nes
asset_name: ${{ github.event.repository.name }}-${{ env.PROJECT_VERSION }}.nes
asset_content_type: application/x-nes-rom

- name: Upload Documentation ZIP
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: doc/documentation-${{ env.PROJECT_VERSION }}.zip
asset_name: documentation-${{ env.PROJECT_VERSION }}.zip
asset_content_type: application/zip

- name: Upload Documentation TAR.GZ
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: doc/documentation-${{ env.PROJECT_VERSION }}.tar.gz
asset_name: documentation-${{ env.PROJECT_VERSION }}.tar.gz
asset_content_type: application/gzip

0 comments on commit 81dc5ec

Please sign in to comment.