Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to determine whether to upload an asset through a condition #229

Open
YangJiao0817 opened this issue Apr 27, 2022 · 0 comments
Open

Comments

@YangJiao0817
Copy link

Hi everyone,
Suppose I have two assets, one is A asset and the other is B asset,
When RC release I want to upload A asset but not upload B asset, when GA I want to upload A asset and B asset, I want to know how to do this.
It would be nice if could specify the file directory where the asset is uploaded.
Then upload all files in the specified directory.
For example,

name: Main

on: push

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Build
        run: echo ${{ github.sha }} > Release.txt
      - name: Test
        run: cat Release.txt
      - name: Release
        uses: softprops/action-gh-release@v1
        if: startsWith(github.ref, 'refs/tags/')
        with:
          files_directory: ${files_directory}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant