Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
frnandu committed Sep 2, 2024
1 parent 834ed7f commit fd968c7
Showing 1 changed file with 18 additions and 40 deletions.
58 changes: 18 additions & 40 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,24 @@ on:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

jobs:
draft_release:
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
id: ${{ steps.create_release.outputs.id }}
steps:
# Create Release
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: true
# prerelease: true

build_android:
needs: [draft_release]
runs-on: ubuntu-latest
Expand Down Expand Up @@ -54,46 +72,6 @@ jobs:
asset_name: alby-go-${{ github.ref_name }}-android.apk
asset_content_type: application/vnd.android.package-archive

# - name: Create Release
# id: create_release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{ github.ref }}
# release_name: Release ${{ github.ref }}
# prerelease: true
#
# - name: Upload Release Asset
# id: upload-release-asset
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ./app-release.apk
# asset_name: alby-go-${{ github.ref_name }}-android.apk
# asset_content_type: application/vnd.android.package-archive

draft_release:
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
id: ${{ steps.create_release.outputs.id }}
steps:
# Create Release
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: true
# prerelease: true

# publish-release:
# needs: [release, build_android]
# runs-on: ubuntu-latest
Expand Down

0 comments on commit fd968c7

Please sign in to comment.