Skip to content

Commit

Permalink
Release sherlock platform as a prebuilt (android-graphics#35)
Browse files Browse the repository at this point in the history
* Included a release script for releasing platform prebuilts.

* Update release.yml to include manual trigger

* Update release.yml to add a dependency on build.yml

* Added a condition to check for build.yml successful run and existence of artifacts before release.

* Make build.yml reusable in release.yml
  • Loading branch information
sonakshisaxena1 authored Jan 13, 2025
1 parent 6fcefcf commit fbf7c36
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Allows to reuse this workflow
workflow_call:

jobs:
build:
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release Sherlock Platform prebuilt

on:
push:
tags:
- 'v*'
workflow_dispatch:

jobs:
build-platform:
uses: ./.github/workflows/build.yml

release:
needs: build-platform
runs-on: ubuntu-latest

steps:
- name: Download Artifacts from Build Workflow
uses: actions/download-artifact@v3
with:
path: sherlock-platform-artifacts

- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: |
sherlock-platform-artifacts/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit fbf7c36

Please sign in to comment.