Skip to content

Commit

Permalink
build(action): support actions/upload-artifact/tree/v4
Browse files Browse the repository at this point in the history
  • Loading branch information
sinlov committed Jan 22, 2024
1 parent edd6f68 commit 0e6d011
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 47 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
branches:
- 'main'
- 'release-*'
- '*-feature-*'
- 'FE-*'
- 'BF-*'
- 'PU-*'
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/deploy-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: deploy-tag
on:
workflow_call: # https://docs.github.com/actions/using-workflows/reusing-workflows#using-inputs-and-secrets-in-a-reusable-workflow
inputs:
dry_run:
description: 'dry run flag'
default: false
required: false
type: boolean
prerelease:
description: 'prerelease flag'
default: true
Expand Down Expand Up @@ -45,8 +50,9 @@ jobs:
uses: actions/download-artifact@v4
if: ${{ inputs.download_artifact_name != null }}
with:
name: ${{inputs.download_artifact_name}}
path: ${{ github.workspace }}/dist
pattern: ${{ inputs.download_artifact_name }}-${{inputs.tag_name}}*
merge-multiple: true

- name: Display structure of downloaded files
if: ${{ inputs.download_artifact_name != null }}
Expand All @@ -55,7 +61,7 @@ jobs:
- uses: softprops/action-gh-release@master
name: Create Release
if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/') && ${{ inputs.dry_run == false }}
with:
tag_name: ${{inputs.tag_name}}
## with permissions to create releases in the other repo
Expand Down
44 changes: 0 additions & 44 deletions .github/workflows/go-release-cross.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .github/workflows/go-release-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@ jobs:
uses: actions/upload-artifact@v4
if: ${{ inputs.upload_artifact_name != null }}
with:
name: ${{ inputs.upload_artifact_name }}
name: ${{ inputs.upload_artifact_name }}-${{inputs.version_name}}-${{ matrix.go_os }}-${{ matrix.go_arch }}
retention-days: 5
overwrite: true
if-no-files-found: error
path: |
${{ env.ASSET }}
Expand Down

0 comments on commit 0e6d011

Please sign in to comment.