Merge pull request #143 from umarcor/ci-artifacts

ci/Release: replace openFPGALoader-Documentation subdir with a tarball
This commit is contained in:
Gwenhael Goavec-Merou 2021-12-02 06:31:45 +01:00 committed by GitHub
commit 486d60e98c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 2 deletions

View File

@ -22,9 +22,14 @@ jobs:
token: ${{ github.token }} token: ${{ github.token }}
skip-deploy: ${{ github.event_name == 'pull_request' }} 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' - name: '📤 Upload artifact: HTML'
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: openFPGALoader-Documentation
path: doc/_build/html path: doc/_build/html
@ -242,10 +247,16 @@ jobs:
with: with:
path: artifact 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) # Tagged: create a pre-release or a release (semver)
# Untagged: update the assets of pre-release 'nightly' # Untagged: update the assets of pre-release 'nightly'
- uses: eine/tip@master - uses: '📦 eine/tip@master'
with: with:
token: ${{ github.token }} token: ${{ github.token }}
tag: 'nightly' tag: 'nightly'
files: artifact/*-openFPGALoader/* files: artifact/**/*