Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rushiranpise committed Nov 4, 2023
1 parent a1029d5 commit 1454376
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,27 +40,16 @@ jobs:

- name: Create Pre-Release
id: create_release
run: |
tag_name=$(git rev-parse HEAD)
release_description="Changelog: $(git log --oneline $tag_name...HEAD)"
echo "Creating release with tag: $tag_name and description: $release_description"
response=$(curl -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
-d '{
"tag_name": "'"$tag_name"'",
"name": "Release '"$tag_name"'",
"body": "'"$release_description"'",
"draft": false,
"prerelease": true
}' \
"https://api.github.com/repos/${{ github.repository }}/releases")
release_id=$(echo $response | jq -r .id)
echo "::set-output name=release_id::$release_id"
uses: actions/create-release@v1
with:
files: game-unlocker-v${{ steps.version.outputs.app_version }}.apk
tag_name: ${{ github.sha }}
release_name: Release ${{ github.sha }}
prerelease: true

- name: Upload Release Assets
run: |
release_id=${{ steps.create_release.outputs.release_id }}
release_id=${{ steps.create_release.outputs.id }}
asset_url=$(curl -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Content-Type: application/octet-stream" \
Expand Down

0 comments on commit 1454376

Please sign in to comment.