2023-10-20 12:21:39 +03:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- 'rc*'
|
|
|
|
workflow_dispatch:
|
|
|
|
|
2023-10-20 12:40:54 +03:00
|
|
|
name: Upload Prerelease Assets
|
2023-10-20 12:21:39 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Upload Release Assets
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
2024-07-19 06:06:53 +03:00
|
|
|
uses: actions/checkout@v4
|
2023-10-20 12:21:39 +03:00
|
|
|
|
|
|
|
- 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 }}
|
2023-12-25 15:59:56 +03:00
|
|
|
draft: true
|
2023-10-20 12:21:39 +03:00
|
|
|
prerelease: true
|
|
|
|
|
|
|
|
- name: create artifacts directory
|
|
|
|
run: mkdir artifact
|
|
|
|
working-directory: ./
|
|
|
|
|
|
|
|
- uses: dawidd6/action-download-artifact@v2
|
|
|
|
id: download-artifact
|
|
|
|
with:
|
|
|
|
workflow: build-uc2.yml
|
|
|
|
workflow_conclusion: success
|
2024-09-21 18:12:02 +03:00
|
|
|
branch: master
|
2023-10-20 12:21:39 +03:00
|
|
|
path: artifact
|
|
|
|
|
|
|
|
- name: Display structure of downloaded files
|
|
|
|
run: ls -R
|
|
|
|
working-directory: artifact
|
|
|
|
|
|
|
|
|
|
|
|
- name: Upload Release Assets
|
|
|
|
id: upload-release-assets
|
|
|
|
uses: dwenegar/upload-release-assets@v1
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
release_id: ${{ steps.create_release.outputs.id }}
|
|
|
|
assets_path: artifact
|