Skip to content

Prerelease

Prerelease #10

Workflow file for this run

name: Prerelease
on:
workflow_dispatch:
inputs:
prerelease_number:
description: 'Prerelease number'
required: true
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Create Release Archive
run: tar --exclude=./example --exclude=.git --exclude=*/.git -czvf ../cbl-ionic.tar.gz .
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.event.inputs.prerelease_number }}
release_name: Release ${{ github.event.inputs.prerelease_number }}
draft: false
prerelease: true
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ../cbl-ionic.tar.gz
asset_name: cbl-ionic.tar.gz
asset_content_type: application/gzip