diff --git a/.github/workflows/Test.yml b/.github/workflows/Test.yml index 3fb1300..5c0ccde 100644 --- a/.github/workflows/Test.yml +++ b/.github/workflows/Test.yml @@ -22,9 +22,14 @@ jobs: token: ${{ github.token }} skip-deploy: ${{ github.event_name == 'pull_request' }} + - name: '๐Ÿงน Clean HTML build' + if: ${{ github.event_name != 'pull_request' }} + run: sudo rm -rf doc/_build/html/.git + - name: '๐Ÿ“ค Upload artifact: HTML' uses: actions/upload-artifact@v2 with: + name: openFPGALoader-Documentation path: doc/_build/html @@ -242,10 +247,16 @@ jobs: with: path: artifact + - name: 'โœ‰๏ธ Package Documentation' + run: | + cd artifact + tar cvzf openFPGALoader-Documentation.tar.gz openFPGALoader-Documentation + rm -rf openFPGALoader-Documentation + # Tagged: create a pre-release or a release (semver) # Untagged: update the assets of pre-release 'nightly' - - uses: eine/tip@master + - uses: '๐Ÿ“ฆ eine/tip@master' with: token: ${{ github.token }} tag: 'nightly' - files: artifact/*-openFPGALoader/* + files: artifact/**/*