Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

Change release type from prerelase/draft to release? #110

Closed
JumpAttacker opened this issue Dec 5, 2020 · 2 comments
Closed

Change release type from prerelase/draft to release? #110

JumpAttacker opened this issue Dec 5, 2020 · 2 comments

Comments

@JumpAttacker
Copy link

Is it possible?

at this time im doing it like dat

      - name: Create GitHub Release
        id: create-new-release
        uses: actions/create-release@v1
        env:
          GITHUB_TOKEN: ${{ secrets.github_token }}
        with:
          tag_name: v${{ github.run_number }}
          release_name: Release V${{ github.run_number }}
          draft: false
          prerelease: true

      - name: Upload to github release
        uses: actions/upload-release-asset@v1
        env:
          GITHUB_TOKEN: ${{ secrets.github_token }}
        with:
          upload_url: ${{ steps.create-new-release.outputs.upload_url }}
          asset_path: 'app.zip'
          asset_name: app-v.${{ github.run_number }}.zip
          asset_content_type: application/zip

i want

      - name: Create GitHub Release
        id: create-new-release
        uses: actions/create-release@v1
        env:
          GITHUB_TOKEN: ${{ secrets.github_token }}
        with:
          tag_name: v${{ github.run_number }}
          release_name: Release V${{ github.run_number }}
          draft: false
          prerelease: true

      - name: Upload to github release
        uses: actions/upload-release-asset@v1
        env:
          GITHUB_TOKEN: ${{ secrets.github_token }}
        with:
          upload_url: ${{ steps.create-new-release.outputs.upload_url }}
          asset_path: 'app.zip'
          asset_name: app-v.${{ github.run_number }}.zip
          asset_content_type: application/zip

  [change type of release to release from draft or prerelease]
 
@Frederick888
Copy link

Related: #63 (see workarounds)

@JumpAttacker
Copy link
Author

i did this with code

      - name: Create GitHub Release
        id: create-new-release
        uses: actions/create-release@v1
        env:
          GITHUB_TOKEN: ${{ secrets.github_token }}
        with:
          tag_name: v${{ github.run_number }}
          release_name: Release V${{ github.run_number }}
          draft: true
          prerelease: false

      - name: Upload to github release
        uses: actions/upload-release-asset@v1
        env:
          GITHUB_TOKEN: ${{ secrets.github_token }}
        with:
          upload_url: ${{ steps.create-new-release.outputs.upload_url }}
          asset_path: 'app.zip'
          asset_name: app-v.${{ github.run_number }}.zip
          asset_content_type: application/zip

      - uses: eregon/publish-release@v1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          release_id: ${{ steps.create-new-release.outputs.id }}

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

No branches or pull requests

2 participants