Skip to content

Commit

Permalink
append_release for publishing check
Browse files Browse the repository at this point in the history
  • Loading branch information
CedricGuillemet committed Oct 24, 2023
1 parent 6455983 commit 6d72317
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/append_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
release-name:
required: true
type: string
is-preview:
required: true
type: boolean
jobs:
Build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -170,3 +173,17 @@ jobs:
body: "Release for ${{ inputs.release-name }}"
draft: false
prerelease: false
if: ${{ inputs.is-preview }} == true

- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
react-native.tar.gz
Windows0.69.tar.gz
Windows0.70.tar.gz
Windows0.71.tar.gz
iOSAndroid0.69.tar.gz
iOSAndroid0.70.tar.gz
iOSAndroid0.71.tar.gz
if: ${{ inputs.is-preview }} == false
7 changes: 4 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ jobs:
uses: ./.github/workflows/append_release.yml
with:
release-name: ${GITHUB_REF/refs\/tags\//}
is-preview: false

package:
needs: [build-typescript, build-android-ios-064, build-android-ios-065, build-android-ios-069, build-android-ios-070, build-android-ios-071, build-windows-064, build-windows-065, build-windows-069, build-windows-070, build-windows-071]
Expand Down Expand Up @@ -158,17 +159,17 @@ jobs:
uses: actions/download-artifact@v2
with:
name: 'Assembled-BaseKit-Windows0.69'
path: Package/Assembled-Windows0.69
path: Package/Assembled-BaseKit-Windows0.69
- name: Download Assembled-BaseKit-Windows 0.70 Folder
uses: actions/download-artifact@v2
with:
name: 'Assembled-Windows0.70'
path: Package/Assembled-Windows0.70
path: Package/Assembled-BaseKit-Windows0.70
- name: Download Assembled-BaseKit-Windows 0.71 Folder
uses: actions/download-artifact@v2
with:
name: 'Assembled-BaseKit-Windows0.71'
path: Package/Assembled-Windows0.71
path: Package/Assembled-BaseKit-Windows0.71

- name: Display structure of downloaded Assembled and Assembled-Windows folders
run: ls -R
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ jobs:
uses: ./.github/workflows/append_release.yml
with:
release-name: ${{ github.event.inputs.release_version }}
is-preview: true

package:
needs: [build-typescript, build-android-ios-064, build-android-ios-065, build-android-ios-069, build-android-ios-070, build-android-ios-071, build-windows-064, build-windows-065, build-windows-069, build-windows-070, build-windows-071]
Expand Down

0 comments on commit 6d72317

Please sign in to comment.