diff options
author | umarcor <unai.martinezcorral@ehu.eus> | 2023-03-05 19:54:29 +0000 |
---|---|---|
committer | umarcor <unai.martinezcorral@ehu.eus> | 2023-03-05 20:48:16 +0000 |
commit | 6697d3502aba1923d900f6a9c781b392f1f4c9c6 (patch) | |
tree | 790180d40ed62fbab160afdbaa186ad8097a6fe8 /.github | |
parent | 0edaa61d52fff06dda6e582c4ffe5af6d970a190 (diff) | |
download | ghdl-6697d3502aba1923d900f6a9c781b392f1f4c9c6.tar.gz ghdl-6697d3502aba1923d900f6a9c781b392f1f4c9c6.tar.bz2 ghdl-6697d3502aba1923d900f6a9c781b392f1f4c9c6.zip |
ci/Test/Release: update strategy
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/Test.yml | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/.github/workflows/Test.yml b/.github/workflows/Test.yml index bba04235f..faa27fbc1 100644 --- a/.github/workflows/Test.yml +++ b/.github/workflows/Test.yml @@ -262,32 +262,22 @@ jobs: steps: - name: '📥 Download artifacts' - if: "!contains(github.ref, 'refs/tags/')" uses: actions/download-artifact@v3 with: path: artifacts - # Do not upload assets to tagged releases - - name: Set list of files for uploading - id: files - shell: python - run: | - from os import environ - list = ( - 'None' - if '${{ github.ref }}'.startswith('refs/tags/') else - '**/*.zst **/*.tgz **/ghdl-*.zip **/man/ghdl.1' - ) - with open(environ['GITHUB_OUTPUT'], 'a', encoding='utf-8') as gho: - gho.write(f'list={list}\n') - # Tagged: create a pre-release or a release (semver) # Untagged: update the assets of pre-release 'nightly' - uses: pyTooling/Actions/releaser@r0 with: token: ${{ github.token }} tag: 'nightly' - files: ${{ steps.files.outputs.list }} + snapshots: false + files: | + **/*.zst + **/*.tgz + **/ghdl-*.zip + **/man/ghdl.1 Coverage: |