Skip to content

Asset - on dispatch; build release and publish #35

Asset - on dispatch; build release and publish

Asset - on dispatch; build release and publish #35

Workflow file for this run

# Triggered on dispatching the action
# Create a release and build
name: Asset - on dispatch; build release and publish
on:
workflow_dispatch:
inputs:
release_name:
description: Release/Asset name
required: true
default: x.y.z-uat.1
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true # Runs bundle install and caches gems. See the ruby_test.yml
# example if you need more control over bundler.
- name: Set up environment
run: |
cp config/database.yml.example config/database.yml
cp config/mailer.yml.example config/mailer.yml
cp config/bunny.yml.example config/bunny.yml
- name: Compile Build
run: ./compile-build
- name: Create release and upload release.tar.gz
uses: ncipollo/[email protected]
with:
name: ${{ github.event.inputs.release_name }}
tag: v${{ github.event.inputs.release_name }}
prerelease: true
commit: ${{ github.sha }}
artifacts: release.tar.gz
artifactErrorsFailBuild: true